From 87338553457d665afd00699a7c2f6fd66776d3f0 Mon Sep 17 00:00:00 2001 From: David Levine Date: Tue, 13 Mar 2012 19:56:06 -0500 Subject: [PATCH] Promote uid_t value to long and print with %ld to prevent compile warning on platforms, such as Cygwin, where it is a long. --- test/getfullname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 1.7.10.4