]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hardlink: fix time_t=long assumptions
authorKarel Zak <kzak@redhat.com>
Thu, 6 May 2021 08:13:27 +0000 (10:13 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 6 May 2021 08:45:16 +0000 (10:45 +0200)
References: http://github.com/karelzak/util-linux/commit/ce3355cc54d97711bc240783324f7ab51fd6e371
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/hardlink.c

index 7137225468a411f6049153768a54013a8e1d2b1a..8918b326ad7014893567df26b01fb4a9f4ca2e4c 100644 (file)
@@ -302,8 +302,8 @@ static void print_stats(void)
        jlog(JLOG_SUMMARY, "%-15s %s", _("Saved:"), ssz);
        free(ssz);
 
-       jlog(JLOG_SUMMARY, _("%-15s %ld.%06ld seconds"), _("Duration:"),
-            (long)delta.tv_sec, (long)delta.tv_usec);
+       jlog(JLOG_SUMMARY, _("%-15s %"PRId64".%06"PRId64" seconds"), _("Duration:"),
+            (int64_t)delta.tv_sec, (int64_t)delta.tv_usec);
 }
 
 /**