summary refs log tree commit diff
path: root/pwd/putpwent.c
diff options
context:
space:
mode:
Diffstat (limited to 'pwd/putpwent.c')
-rw-r--r--pwd/putpwent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pwd/putpwent.c b/pwd/putpwent.c
index 7ab48c16d6..ac1fd7e464 100644
--- a/pwd/putpwent.c
+++ b/pwd/putpwent.c
@@ -35,9 +35,9 @@ putpwent (p, stream)
       return -1;
     }
 
-  if (fprintf (stream, "%s:%s:%u:%u:%s:%s:%s\n",
+  if (fprintf (stream, "%s:%s:%lu:%lu:%s:%s:%s\n",
 	       p->pw_name, _S (p->pw_passwd),
-	       p->pw_uid, p->pw_gid,
+	       (unsigned long int) p->pw_uid, (unsigned long int) p->pw_gid,
 	       _S (p->pw_gecos), _S (p->pw_dir), _S (p->pw_shell)) < 0)
     return -1;