aboutsummaryrefslogtreecommitdiff
path: root/project/src/wszst.c
diff options
context:
space:
mode:
authorWiimm <none>2020-09-30 15:43:02 +0200
committerWiimm <none>2020-09-30 15:43:02 +0200
commit50a8c14d2acb20822baff451b35476d717ffc5b4 (patch)
treeba286f8307130b9143bc43e20978927c94a8f65b /project/src/wszst.c
parent646b95d113309378591b75a290ee6c62a04f3772 (diff)
SZS v2.20a.beta2: Test Mac build
Diffstat (limited to '')
-rw-r--r--project/src/wszst.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/project/src/wszst.c b/project/src/wszst.c
index 7ca33f1..15100f2 100644
--- a/project/src/wszst.c
+++ b/project/src/wszst.c
@@ -177,28 +177,7 @@ static void list_compressions_exit()
static void print_version_section ( bool print_sect_header )
{
- if (print_sect_header)
- fputs("[version]\n",stdout);
-
- const u32 base = 0x04030201;
- const u8 * e = (u8*)&base;
- const u32 endian = be32(e);
-
- printf( "prog=" WSZST_SHORT "\n"
- "name=" WSZST_LONG "\n"
- "version=" VERSION "\n"
- "beta=%d\n"
- "revision=" REVISION "\n"
- "system=" SYSTEM "\n"
- "endian=%u%u%u%u %s\n"
- "author=" AUTHOR "\n"
- "date=" DATE "\n"
- "url=" URI_HOME WSZST_SHORT "\n"
- "\n"
- , BETA_VERSION
- , e[0], e[1], e[2], e[3]
- , endian == 0x01020304 ? "little"
- : endian == 0x04030201 ? "big" : "mixed" );
+ cmd_version_section(print_sect_header,WSZST_SHORT,WSZST_LONG);
}
///////////////////////////////////////////////////////////////////////////////
@@ -1806,7 +1785,7 @@ static enumError cmd_sha1()
{
if (long_count>1)
{
- #if USE_NEW_FILEATTRIB
+ #if HAVE_FILEATTRIB_NSEC
struct tm * tm = localtime(&szs.fatt.mtime.tv_sec);
#else
struct tm * tm = localtime(&szs.fatt.mtime);