summaryrefslogtreecommitdiff
path: root/gnulib-tests/test-getlogin.c
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-07-04 17:13:50 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-07-04 17:13:50 +0300
commit71cd8e3a743046573744123777061b64881bf372 (patch)
tree82522befe647f4fff186a5630cad0cad33f8ef53 /gnulib-tests/test-getlogin.c
parentc18578632fd3c9e513e613a86ba2b7c4ebee6c45 (diff)
downloadcoreutils-upstream.tar.gz
Imported Upstream version 8.24upstream/8.24upstream
Diffstat (limited to 'gnulib-tests/test-getlogin.c')
-rw-r--r--gnulib-tests/test-getlogin.c8
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);