summaryrefslogtreecommitdiff
path: root/source3/smbd/nttrans.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-11-05 18:28:29 +0000
committerTim Potter <tpot@samba.org>2003-11-05 18:28:29 +0000
commitf59bd268945960ddd90fccf7cf7b077e1bdf41f2 (patch)
treecb87a6a1571685f796e4b0a2b499d80d23535a81 /source3/smbd/nttrans.c
parent150fb8ea588d012a31837884d2843ad3040ce0c9 (diff)
downloadsamba-f59bd268945960ddd90fccf7cf7b077e1bdf41f2.tar.gz
samba-f59bd268945960ddd90fccf7cf7b077e1bdf41f2.tar.bz2
samba-f59bd268945960ddd90fccf7cf7b077e1bdf41f2.zip
Merge of 64-bit printf warning fixes.
(This used to be commit a6cc763333943bc6e360bb7e78cf9bfb1bc936e8)
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r--source3/smbd/nttrans.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index e7d7c20f6b..8158c67a5e 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -1957,8 +1957,8 @@ static int call_nt_transact_ioctl(connection_struct *conn, char *inbuf, char *ou
DEBUGADD(10,("for SID: %s\n",sid_string_static(&sid)));
if (!NT_STATUS_IS_OK(sid_to_uid(&sid, &uid))) {
- DEBUG(0,("sid_to_uid: failed, sid[%s] sid_len[%u]\n",
- sid_string_static(&sid),sid_len));
+ DEBUG(0,("sid_to_uid: failed, sid[%s] sid_len[%lu]\n",
+ sid_string_static(&sid),(unsigned long)sid_len));
uid = (-1);
}
@@ -2169,7 +2169,7 @@ static int call_nt_transact_get_user_quota(connection_struct *conn, char *inbuf,
sid_len = IVAL(pdata,4);
if (data_count < 8+sid_len) {
- DEBUG(0,("TRANSACT_GET_USER_QUOTA_FOR_SID: requires %d >= %d bytes data\n",data_count,8+sid_len));
+ DEBUG(0,("TRANSACT_GET_USER_QUOTA_FOR_SID: requires %d >= %lu bytes data\n",data_count,(unsigned long)(8+sid_len)));
return ERROR_DOS(ERRDOS,ERRunknownlevel);
}
@@ -2302,7 +2302,7 @@ static int call_nt_transact_set_user_quota(connection_struct *conn, char *inbuf,
sid_len = IVAL(pdata,4);
if (data_count < 40+sid_len) {
- DEBUG(0,("TRANSACT_SET_USER_QUOTA: requires %d >= %d bytes data\n",data_count,40+sid_len));
+ DEBUG(0,("TRANSACT_SET_USER_QUOTA: requires %d >= %lu bytes data\n",data_count,(unsigned long)40+sid_len));
return ERROR_DOS(ERRDOS,ERRunknownlevel);
}