summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-02-23 16:22:43 -0800
committerJeremy Allison <jra@samba.org>2009-02-23 16:22:43 -0800
commitfaa1100d229aef56da5d48f5c19ec901e520f8ef (patch)
tree4f5bf875d05a91905ace8766c3d342770474eda9 /source3/utils
parentbcd6e5ec3315b14cedf7437a70c34d233ded082e (diff)
downloadsamba-faa1100d229aef56da5d48f5c19ec901e520f8ef.tar.gz
samba-faa1100d229aef56da5d48f5c19ec901e520f8ef.tar.bz2
samba-faa1100d229aef56da5d48f5c19ec901e520f8ef.zip
More warning fixes for Solaris.
Jeremy.
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbget.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/utils/smbget.c b/source3/utils/smbget.c
index 7c01f5db3a..042f3a98f7 100644
--- a/source3/utils/smbget.c
+++ b/source3/utils/smbget.c
@@ -194,7 +194,8 @@ static int smb_download_dir(const char *base, const char *name, int resume)
}
if(chmod(relname, remotestat.st_mode) < 0) {
- fprintf(stderr, "Unable to change mode of local dir %s to %o\n", relname, remotestat.st_mode);
+ fprintf(stderr, "Unable to change mode of local dir %s to %o\n", relname,
+ (unsigned int)remotestat.st_mode);
smbc_closedir(dirhandle);
return 0;
}
@@ -471,7 +472,8 @@ static int smb_download_file(const char *base, const char *name, int recursive,
if(keep_permissions && !send_stdout) {
if(fchmod(localhandle, remotestat.st_mode) < 0) {
- fprintf(stderr, "Unable to change mode of local file %s to %o\n", path, remotestat.st_mode);
+ fprintf(stderr, "Unable to change mode of local file %s to %o\n", path,
+ (unsigned int)remotestat.st_mode);
smbc_close(remotehandle);
close(localhandle);
return 0;