Promote uid_t value to long and print with %ld to prevent compile
[mmh] / test / getfullname.c
index 3dc221e..d8ff101 100644 (file)
@@ -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);
        }