diff options
Diffstat (limited to '')
| -rw-r--r-- | project/src/lib-szs-create.c | 6 | ||||
| -rw-r--r-- | project/src/wszst.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/project/src/lib-szs-create.c b/project/src/lib-szs-create.c index f0ee32a..77b0fc0 100644 --- a/project/src/lib-szs-create.c +++ b/project/src/lib-szs-create.c @@ -808,12 +808,12 @@ enumError CreateSZS { StringCopyE( sd.path_rel, sd.path+sizeof(sd.path), *ptr ); struct stat st; - #if HAVE_FILEATTRIB_NSEC + #if HAVE_FILEATTRIB_NSEC if ( stat(sd.path,&st) || CompareTimeSpec(&st.st_mtim,&szs.fatt.mtime) < 0 ) - #else + #else const time_t mtime = stat(sd.path,&st) ? 0 : st.st_mtime; if ( mtime < szs.fatt.mtime ) - #endif + #endif { const bool is_compressed = IsCompressedFF(setup_param2.fform_file); if (is_compressed) diff --git a/project/src/wszst.c b/project/src/wszst.c index 15100f2..595d1d9 100644 --- a/project/src/wszst.c +++ b/project/src/wszst.c @@ -1785,11 +1785,7 @@ static enumError cmd_sha1() { if (long_count>1) { - #if HAVE_FILEATTRIB_NSEC - struct tm * tm = localtime(&szs.fatt.mtime.tv_sec); - #else - struct tm * tm = localtime(&szs.fatt.mtime); - #endif + struct tm * tm = localtime(&FILEATTRIB_SEC(szs.fatt.mtime)); char timbuf[40]; strftime(timbuf,sizeof(timbuf),"%F %T ",tm); fputs(timbuf,stdout); |
