diff options
author | Tim Potter <tpot@samba.org> | 2003-07-22 04:31:20 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-07-22 04:31:20 +0000 |
commit | f93528ba007c8800a850678f35f499fb7360fb9a (patch) | |
tree | b3594e23ca8dd5afec18590cfce291ba56855fc4 /source/utils/pdbedit.c | |
parent | afed2cbbcc07de9e453156972250f5f9d22e8e83 (diff) | |
download | samba-f93528ba007c8800a850678f35f499fb7360fb9a.tar.gz samba-f93528ba007c8800a850678f35f499fb7360fb9a.tar.xz samba-f93528ba007c8800a850678f35f499fb7360fb9a.zip |
Fixup a bunch of printf-style functions and debugs to use unsigned long when
displaying pid_t, uid_t and gid_t values. This removes a whole lot of warnings
on some of the 64-bit build farm machines as well as help us out when 64-bit
uid/gid/pid values come along.
Diffstat (limited to 'source/utils/pdbedit.c')
-rw-r--r-- | source/utils/pdbedit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/utils/pdbedit.c b/source/utils/pdbedit.c index c3e063eff01..0f1f6edf086 100644 --- a/source/utils/pdbedit.c +++ b/source/utils/pdbedit.c @@ -161,16 +161,17 @@ static int print_sam_info (SAM_ACCOUNT *sam_pwent, BOOL verbosity, BOOL smbpwdst pdb_sethexpwd(lm_passwd, pdb_get_lanman_passwd(sam_pwent), pdb_get_acct_ctrl(sam_pwent)); pdb_sethexpwd(nt_passwd, pdb_get_nt_passwd(sam_pwent), pdb_get_acct_ctrl(sam_pwent)); - printf("%s:%d:%s:%s:%s:LCT-%08X:\n", + printf("%s:%lu:%s:%s:%s:LCT-%08X:\n", pdb_get_username(sam_pwent), - uid, + (unsigned long)uid, lm_passwd, nt_passwd, pdb_encode_acct_ctrl(pdb_get_acct_ctrl(sam_pwent),NEW_PW_FORMAT_SPACE_PADDED_LEN), (uint32)pdb_get_pass_last_set_time(sam_pwent)); } else { uid = nametouid(pdb_get_username(sam_pwent)); - printf ("%s:%d:%s\n", pdb_get_username(sam_pwent), uid, pdb_get_fullname(sam_pwent)); + printf ("%s:%lu:%s\n", pdb_get_username(sam_pwent), (unsigned long)uid, + pdb_get_fullname(sam_pwent)); } return 0; |