From: David Levine Date: Wed, 14 Mar 2012 00:56:06 +0000 (-0500) Subject: Promote uid_t value to long and print with %ld to prevent compile X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=87338553457d665afd00699a7c2f6fd66776d3f0;p=mmh Promote uid_t value to long and print with %ld to prevent compile warning on platforms, such as Cygwin, where it is a long. --- diff --git a/test/getfullname.c b/test/getfullname.c index 3dc221e..d8ff101 100644 --- 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); }