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/testutime.c

    r414 r988  
     1#include "config.h"
    12#include <stdio.h>
    23#include <unistd.h>
     
    910int main(int argc, char * argv[])
    1011{
    11     int             ret;
    1212    int             debug = 0;
    13     char            buffer[16384];
    14     char            mtime[32];
    15     char            ctime[32];
    16     char            atime[32];
    17     char *          pSmbPath = NULL;
     13    char            m_time[32];
     14    char            c_time[32];
     15    char            a_time[32];
     16    const char *          pSmbPath = NULL;
    1817    time_t          t = time(NULL);
    19     struct tm       tm;
    2018    struct stat     st;
    2119    struct utimbuf  utimbuf;
     
    5048    }
    5149   
    52     printf("Before\n mtime:%lu/%s ctime:%lu/%s atime:%lu/%s\n",
    53            st.st_mtime, ctime_r(&st.st_mtime, mtime),
    54            st.st_ctime, ctime_r(&st.st_ctime, ctime),
    55            st.st_atime, ctime_r(&st.st_atime, atime));
     50    printf("Before\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));
    5654   
    5755    utimbuf.actime = t;         /* unchangable (wont change) */
     
    6967    }
    7068   
    71     printf("After\n mtime:%lu/%s ctime:%lu/%s atime:%lu/%s\n",
    72            st.st_mtime, ctime_r(&st.st_mtime, mtime),
    73            st.st_ctime, ctime_r(&st.st_ctime, ctime),
    74            st.st_atime, ctime_r(&st.st_atime, atime));
     69    printf("After\n mtime:%lld/%s ctime:%lld/%s atime:%lld/%s\n",
     70           (long long)st.st_mtime, ctime_r(&st.st_mtime, m_time),
     71           (long long)st.st_ctime, ctime_r(&st.st_ctime, c_time),
     72           (long long)st.st_atime, ctime_r(&st.st_atime, a_time));
    7573   
    7674    return 0;
Note: See TracChangeset for help on using the changeset viewer.