mirror of
https://github.com/samba-team/samba.git
synced 2025-03-24 10:50:22 +03:00
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
This commit is contained in:
parent
88e6342936
commit
fd8b258fa2
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user