summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-05-11 21:56:57 -0700
committerJeremy Allison <jra@samba.org>2009-05-11 21:56:57 -0700
commitb4c9cfb2af8f4dd5e18f032c410694e491f1bd74 (patch)
treec4cfaa30ad841a7b425ecd903edf2f0fc304f833 /nsswitch
parent14c1e9fae2a34d77b0ba21ffb570e84b6e433a14 (diff)
downloadsamba-b4c9cfb2af8f4dd5e18f032c410694e491f1bd74.tar.gz
samba-b4c9cfb2af8f4dd5e18f032c410694e491f1bd74.tar.bz2
samba-b4c9cfb2af8f4dd5e18f032c410694e491f1bd74.zip
Fix a bunch of compiler warnings about wrong format types.
Should make Solaris 10 builds look cleaner. Jeremy.
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/wbinfo.c42
1 files changed, 23 insertions, 19 deletions
diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c
index 1d7ad004ac..9ee0e01cc2 100644
--- a/nsswitch/wbinfo.c
+++ b/nsswitch/wbinfo.c
@@ -168,11 +168,11 @@ static bool wbinfo_get_userinfo(char *user)
return false;
}
- d_printf("%s:%s:%d:%d:%s:%s:%s\n",
+ d_printf("%s:%s:%u:%u:%s:%s:%s\n",
pwd->pw_name,
pwd->pw_passwd,
- pwd->pw_uid,
- pwd->pw_gid,
+ (unsigned int)pwd->pw_uid,
+ (unsigned int)pwd->pw_gid,
pwd->pw_gecos,
pwd->pw_dir,
pwd->pw_shell);
@@ -191,11 +191,11 @@ static bool wbinfo_get_uidinfo(int uid)
return false;
}
- d_printf("%s:%s:%d:%d:%s:%s:%s\n",
+ d_printf("%s:%s:%u:%u:%s:%s:%s\n",
pwd->pw_name,
pwd->pw_passwd,
- pwd->pw_uid,
- pwd->pw_gid,
+ (unsigned int)pwd->pw_uid,
+ (unsigned int)pwd->pw_gid,
pwd->pw_gecos,
pwd->pw_dir,
pwd->pw_shell);
@@ -215,11 +215,11 @@ static bool wbinfo_get_user_sidinfo(const char *sid_str)
return false;
}
- d_printf("%s:%s:%d:%d:%s:%s:%s\n",
+ d_printf("%s:%s:%u:%u:%s:%s:%s\n",
pwd->pw_name,
pwd->pw_passwd,
- pwd->pw_uid,
- pwd->pw_gid,
+ (unsigned int)pwd->pw_uid,
+ (unsigned int)pwd->pw_gid,
pwd->pw_gecos,
pwd->pw_dir,
pwd->pw_shell);
@@ -239,10 +239,10 @@ static bool wbinfo_get_groupinfo(const char *group)
return false;
}
- d_printf("%s:%s:%d\n",
+ d_printf("%s:%s:%u\n",
grp->gr_name,
grp->gr_passwd,
- grp->gr_gid);
+ (unsigned int)grp->gr_gid);
wbcFreeMemory(grp);
@@ -260,10 +260,10 @@ static bool wbinfo_get_gidinfo(int gid)
return false;
}
- d_printf("%s:%s:%d\n",
+ d_printf("%s:%s:%u\n",
grp->gr_name,
grp->gr_passwd,
- grp->gr_gid);
+ (unsigned int)grp->gr_gid);
wbcFreeMemory(grp);
@@ -844,7 +844,7 @@ static bool wbinfo_allocate_uid(void)
/* Display response */
- d_printf("New uid: %d\n", uid);
+ d_printf("New uid: %u\n", (unsigned int)uid);
return true;
}
@@ -863,7 +863,7 @@ static bool wbinfo_allocate_gid(void)
/* Display response */
- d_printf("New gid: %d\n", gid);
+ d_printf("New gid: %u\n", (unsigned int)gid);
return true;
}
@@ -887,7 +887,8 @@ static bool wbinfo_set_uid_mapping(uid_t uid, const char *sid_str)
/* Display response */
- d_printf("uid %d now mapped to sid %s\n", uid, sid_str);
+ d_printf("uid %u now mapped to sid %s\n",
+ (unsigned int)uid, sid_str);
return true;
}
@@ -911,7 +912,8 @@ static bool wbinfo_set_gid_mapping(gid_t gid, const char *sid_str)
/* Display response */
- d_printf("gid %d now mapped to sid %s\n", gid, sid_str);
+ d_printf("gid %u now mapped to sid %s\n",
+ (unsigned int)gid, sid_str);
return true;
}
@@ -935,7 +937,8 @@ static bool wbinfo_remove_uid_mapping(uid_t uid, const char *sid_str)
/* Display response */
- d_printf("Removed uid %d to sid %s mapping\n", uid, sid_str);
+ d_printf("Removed uid %u to sid %s mapping\n",
+ (unsigned int)uid, sid_str);
return true;
}
@@ -959,7 +962,8 @@ static bool wbinfo_remove_gid_mapping(gid_t gid, const char *sid_str)
/* Display response */
- d_printf("Removed gid %d to sid %s mapping\n", gid, sid_str);
+ d_printf("Removed gid %u to sid %s mapping\n",
+ (unsigned int)gid, sid_str);
return true;
}