summaryrefslogtreecommitdiff
path: root/examples/libsmbclient
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-03-15 10:14:35 +1100
committerJeremy Allison <jra@samba.org>2013-03-15 20:22:07 +0100
commitfd8b258fa20496c3e6360248503f59704d206742 (patch)
tree05d8d7ac48dfc9109b16147cc9afd5030b55046c /examples/libsmbclient
parent88e6342936cd82324e6bfed665e81831260a654d (diff)
downloadsamba-fd8b258fa20496c3e6360248503f59704d206742.tar.gz
samba-fd8b258fa20496c3e6360248503f59704d206742.tar.bz2
samba-fd8b258fa20496c3e6360248503f59704d206742.zip
examples/libsmbclient: Cast mode_t to unsigned int for GNU/Solaris build
Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Mar 15 20:22:08 CET 2013 on sn-devel-104
Diffstat (limited to 'examples/libsmbclient')
-rw-r--r--examples/libsmbclient/testchmod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/libsmbclient/testchmod.c b/examples/libsmbclient/testchmod.c
index 44731466c2..b285a81a19 100644
--- a/examples/libsmbclient/testchmod.c
+++ b/examples/libsmbclient/testchmod.c
@@ -42,7 +42,7 @@ int main(int argc, char * argv[])
return 1;
}
- printf("\nBefore chmod: mode = %04o\n", st.st_mode);
+ printf("\nBefore chmod: mode = %04o\n", (unsigned int)st.st_mode);
if (smbc_chmod(pSmbPath, mode) < 0)
{
@@ -56,7 +56,7 @@ int main(int argc, char * argv[])
return 1;
}
- printf("After chmod: mode = %04o\n", st.st_mode);
+ printf("After chmod: mode = %04o\n", (unsigned int)st.st_mode);
return 0;
}