diff options
Diffstat (limited to 'gnulib-tests/test-getlogin.c')
-rw-r--r-- | gnulib-tests/test-getlogin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnulib-tests/test-getlogin.c b/gnulib-tests/test-getlogin.c index e18469e8..3f1aeb08 100644 --- a/gnulib-tests/test-getlogin.c +++ b/gnulib-tests/test-getlogin.c @@ -1,5 +1,5 @@ /* Test of getting user name. - Copyright (C) 2010-2014 Free Software Foundation, Inc. + Copyright (C) 2010-2015 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -84,9 +84,9 @@ main (void) pwd = getpwuid (stat_buf.st_uid); if (! pwd) { - fprintf (stderr, "Skipping test: no name found for uid %d\n", - stat_buf.st_uid); - return 77; + long int uid = stat_buf.st_uid; + fprintf (stderr, "Skipping test: no name found for uid %ld\n", uid); + return 77; } ASSERT (strcmp (pwd->pw_name, buf) == 0); |