Not all supported windows formatting libs are C99 compliant and some do not
grasp %ll (similar to %zu). Use int64_t and PRIi64 to work around that.
Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: Selva Nair <selva.nair@gmail.com>
Message-Id: <
1518788739-16610-1-git-send-email-steffan.karger@fox-it.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg16478.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
struct timeval tv;
gettimeofday(&tv, NULL);
- fprintf(fp, "%lld.%06lu %x %s%s%s%s",
- (long long)tv.tv_sec,
+ fprintf(fp, "%"PRIi64".%06lu %x %s%s%s%s",
+ (int64_t)tv.tv_sec,
(unsigned long)tv.tv_usec,
flags,
prefix,