projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eeb81b
)
Promote uid_t value to long and print with %ld to prevent compile
author
David Levine
<levinedl@acm.org>
Wed, 14 Mar 2012 00:56:06 +0000
(19:56 -0500)
committer
David Levine
<levinedl@acm.org>
Wed, 14 Mar 2012 00:56:06 +0000
(19:56 -0500)
warning on platforms, such as Cygwin, where it is a long.
test/getfullname.c
patch
|
blob
|
history
diff --git
a/test/getfullname.c
b/test/getfullname.c
index
3dc221e
..
d8ff101
100644
(file)
--- a/
test/getfullname.c
+++ b/
test/getfullname.c
@@
-28,7
+28,7
@@
main(int argc, char *argv[])
if (! pwd) {
fprintf(stderr, "Unable to retrieve user info for "
- "userid %d\n", getuid());
+ "userid %ld\n", (long) getuid());
exit(1);
}