From 265bf7d31f31962e9b72227d253d278c4da6cd58 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 18 Feb 2012 17:31:37 -0600 Subject: [PATCH] gcc was warning about unused arguments to main, so added use of them in a usage check. --- test/getfullname.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/getfullname.c b/test/getfullname.c index 3afa00f..f0c8a2d 100644 --- a/test/getfullname.c +++ b/test/getfullname.c @@ -16,6 +16,10 @@ int main(int argc, char *argv[]) { + if (argc > 1) { + fprintf (stderr, "usage: %s\n", argv[0]); + } + struct passwd *pwd; pwd = getpwuid(getuid()); -- 1.7.10.4