gcc was warning about unused arguments to main, so added use of them in a usage check.
authorDavid Levine <levinedl@acm.org>
Sat, 18 Feb 2012 23:31:37 +0000 (17:31 -0600)
committerDavid Levine <levinedl@acm.org>
Sat, 18 Feb 2012 23:31:37 +0000 (17:31 -0600)
test/getfullname.c

index 3afa00f..f0c8a2d 100644 (file)
 int
 main(int argc, char *argv[])
 {
+       if (argc > 1) {
+               fprintf (stderr, "usage: %s\n", argv[0]);
+       }
+
        struct passwd *pwd;
 
        pwd = getpwuid(getuid());