Changeset 988 for vendor/current/examples/libsmbclient/teststat.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/examples/libsmbclient/teststat.c
r414 r988 10 10 { 11 11 int debug = 0; 12 char buffer[16384]; 13 char mtime[32]; 14 char ctime[32]; 15 char atime[32]; 16 char * pSmbPath = NULL; 17 char * pLocalPath = NULL; 12 char m_time[32]; 13 char c_time[32]; 14 char a_time[32]; 15 const char * pSmbPath = NULL; 16 const char * pLocalPath = NULL; 18 17 struct stat st; 19 18 … … 49 48 } 50 49 51 printf("\nSAMBA\n mtime:%l u/%s ctime:%lu/%s atime:%lu/%s\n",52 st.st_mtime, ctime_r(&st.st_mtime, mtime),53 st.st_ctime, ctime_r(&st.st_ctime, ctime),54 st.st_atime, ctime_r(&st.st_atime, atime));50 printf("\nSAMBA\n mtime:%lld/%s ctime:%lld/%s atime:%lld/%s\n", 51 (long long)st.st_mtime, ctime_r(&st.st_mtime, m_time), 52 (long long)st.st_ctime, ctime_r(&st.st_ctime, c_time), 53 (long long)st.st_atime, ctime_r(&st.st_atime, a_time)); 55 54 56 55 if (pLocalPath != NULL) … … 62 61 } 63 62 64 printf("LOCAL\n mtime:%l u/%s ctime:%lu/%s atime:%lu/%s\n",65 st.st_mtime, ctime_r(&st.st_mtime, mtime),66 st.st_ctime, ctime_r(&st.st_ctime, ctime),67 st.st_atime, ctime_r(&st.st_atime, atime));63 printf("LOCAL\n mtime:%lld/%s ctime:%lld/%s atime:%lld/%s\n", 64 (long long)st.st_mtime, ctime_r(&st.st_mtime, m_time), 65 (long long)st.st_ctime, ctime_r(&st.st_ctime, c_time), 66 (long long)st.st_atime, ctime_r(&st.st_atime, a_time)); 68 67 } 69 68
Note:
See TracChangeset
for help on using the changeset viewer.