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/smbd | |
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/smbd')
-rw-r--r-- | source/smbd/open.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/open.c b/source/smbd/open.c index 6d03eaa29ac..5f6ed74f09e 100644 --- a/source/smbd/open.c +++ b/source/smbd/open.c @@ -675,8 +675,8 @@ dev = %x, inode = %.0f\n", old_shares[i].op_type, fname, (unsigned int)dev, (dou dev = %x, inode = %.0f. Deleting it to continue...\n", (int)broken_entry.pid, fname, (unsigned int)dev, (double)inode)); if (process_exists(broken_entry.pid)) { - DEBUG(0,("open_mode_check: Existent process %d left active oplock.\n", - broken_entry.pid )); + DEBUG(0,("open_mode_check: Existent process %lu left active oplock.\n", + (unsigned long)broken_entry.pid )); } if (del_share_entry(dev, inode, &broken_entry, NULL) == -1) { @@ -874,7 +874,7 @@ files_struct *open_file_shared1(connection_struct *conn,char *fname, SMB_STRUCT_ if (file_existed && (GET_FILE_OPEN_DISPOSITION(ofun) == FILE_EXISTS_TRUNCATE)) { if (!open_match_attributes(conn, fname, psbuf->st_mode, mode, &new_mode)) { DEBUG(5,("open_file_shared: attributes missmatch for file %s (0%o, 0%o)\n", - fname, psbuf->st_mode, mode )); + fname, (int)psbuf->st_mode, (int)mode )); file_free(fsp); errno = EACCES; return NULL; |