Changeset 988 for vendor/current/examples/libsmbclient/testchmod.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/examples/libsmbclient/testchmod.c
r414 r988 9 9 int main(int argc, char * argv[]) 10 10 { 11 int ret;12 11 int debug = 0; 13 12 int mode = 0666; 14 char buffer[16384]; 15 char * pSmbPath = NULL; 13 const char * pSmbPath = NULL; 16 14 struct stat st; 17 15 … … 45 43 } 46 44 47 printf("\nBefore chmod: mode = %04o\n", st.st_mode);45 printf("\nBefore chmod: mode = %04o\n", (unsigned int)st.st_mode); 48 46 49 47 if (smbc_chmod(pSmbPath, mode) < 0) … … 59 57 } 60 58 61 printf("After chmod: mode = %04o\n", st.st_mode);59 printf("After chmod: mode = %04o\n", (unsigned int)st.st_mode); 62 60 63 61 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.