projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4d6cfbb
)
gcc was warning about unused arguments to main, so added use of them in a usage check.
author
David Levine
<levinedl@acm.org>
Sat, 18 Feb 2012 23:31:37 +0000
(17:31 -0600)
committer
David Levine
<levinedl@acm.org>
Sat, 18 Feb 2012 23:31:37 +0000
(17:31 -0600)
test/getfullname.c
patch
|
blob
|
history
diff --git
a/test/getfullname.c
b/test/getfullname.c
index
3afa00f
..
f0c8a2d
100644
(file)
--- a/
test/getfullname.c
+++ b/
test/getfullname.c
@@
-16,6
+16,10
@@
int
main(int argc, char *argv[])
{
int
main(int argc, char *argv[])
{
+ if (argc > 1) {
+ fprintf (stderr, "usage: %s\n", argv[0]);
+ }
+
struct passwd *pwd;
pwd = getpwuid(getuid());
struct passwd *pwd;
pwd = getpwuid(getuid());