]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fix warnings as "ISO C90 does not support the '%T' gnu_strftime format"
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 18 Aug 2015 18:29:42 +0000 (20:29 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 18 Aug 2015 18:29:42 +0000 (20:29 +0200)
The complete warnings were:
ISO C90 does not support the '%T' gnu_strftime format [-Wformat=]

print-rx.c

index db3ed4bc9029ec4e66e8f53bcacef86c77e7fde0..246ba6fe3871e484503660c34ab0d0a7ca21c2e9 100644 (file)
@@ -790,7 +790,7 @@ rx_cache_find(const struct rx_header *rxh, const struct ip *ip, int sport,
                        _t = (time_t) EXTRACT_32BITS(bp); \
                        bp += sizeof(int32_t); \
                        tm = localtime(&_t); \
-                       strftime(str, 256, "%Y/%m/%d %T", tm); \
+                       strftime(str, 256, "%Y/%m/%d %H:%M:%S", tm); \
                        ND_PRINT((ndo, " %s", str)); \
                }