about summary refs log tree commit diff
path: root/nss/getent.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-07-07 09:49:02 +0000
committerRoland McGrath <roland@gnu.org>2004-07-07 09:49:02 +0000
commitc61a8bb4a9d1d2c8fa1354b18c5c576cba12608b (patch)
tree7982d11770c9e7d44bf30b36042472ac9bf465bd /nss/getent.c
parentec5a15a32b96e98ce0cdf49a48e880be6bbc10b4 (diff)
downloadglibc-c61a8bb4a9d1d2c8fa1354b18c5c576cba12608b.tar.gz
glibc-c61a8bb4a9d1d2c8fa1354b18c5c576cba12608b.tar.xz
glibc-c61a8bb4a9d1d2c8fa1354b18c5c576cba12608b.zip
* nss/getent.c (print_group, print_passwd): Use %lu format for
	`unsigned long int' values.

	* sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
	error typos in goto statements.
Diffstat (limited to 'nss/getent.c')
-rw-r--r--nss/getent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nss/getent.c b/nss/getent.c
index 5738affd53..26df38068a 100644
--- a/nss/getent.c
+++ b/nss/getent.c
@@ -174,7 +174,7 @@ print_group (struct group *grp)
 {
   unsigned int i = 0;
 
-  printf ("%s:%s:%ld:", grp->gr_name ? grp->gr_name : "",
+  printf ("%s:%s:%lu:", grp->gr_name ? grp->gr_name : "",
 	  grp->gr_passwd ? grp->gr_passwd : "",
 	  (unsigned long int) grp->gr_gid);
 
@@ -453,7 +453,7 @@ networks_keys (int number, char *key[])
 static inline void
 print_passwd (struct passwd *pwd)
 {
-  printf ("%s:%s:%ld:%ld:%s:%s:%s\n",
+  printf ("%s:%s:%lu:%lu:%s:%s:%s\n",
 	  pwd->pw_name ? pwd->pw_name : "",
 	  pwd->pw_passwd ? pwd->pw_passwd : "",
 	  (unsigned long int) pwd->pw_uid,