Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/examples/libsmbclient/teststat2.c

    r740 r988  
    3535                   const char * pLocalPath)
    3636{
    37         //char *pSmbPath = 0;
    3837        struct stat st;
    39         char mtime[32];
    40         char ctime[32];
    41         char atime[32];
     38        char m_time[32];
     39        char c_time[32];
     40        char a_time[32];
    4241       
    4342        smbc_init(get_auth_data_fn, 0);
     
    4948        }
    5049       
    51         printf("SAMBA\n mtime:%lu/%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("SAMBA\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));
    5554       
    5655       
    57         // check the stat on this file
     56        /* check the stat on this file */
    5857        if (stat(pLocalPath, &st) < 0)
    5958        {
     
    6261        }
    6362       
    64         printf("LOCAL\n mtime:%lu/%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));
    6867       
    6968       
    7069        return 0;
    7170}
    72 
Note: See TracChangeset for help on using the changeset viewer.