]> git.ipfire.org Git - thirdparty/suricata.git/commit
Fix 2 compiler warnings 930/head
authorVictor Julien <victor@inliniac.net>
Sun, 13 Apr 2014 08:35:36 +0000 (10:35 +0200)
committerVictor Julien <victor@inliniac.net>
Sun, 13 Apr 2014 08:35:36 +0000 (10:35 +0200)
commit79c924af8ca2a84e35c90dc8807ce5e7e87e1661
tree368fad3ff55d1c15b8db33fbb21edcf78052abd0
parent26778b8703a34ce5065395a307c582dbbc7cb152
Fix 2 compiler warnings

FreeBSD 10 32-bit with clang 3.3:

log-tlslog.c:172:14: error: format specifies type 'long' but the argument has type 'time_t' (aka 'int') [-Werror,-Wformat]
             p->ts.tv_sec,
             ^~~~~~~~~~~~
1 error generated.

detect-engine-payload.c:508:27: warning: format specifies type 'long' but the argument has type 'time_t' (aka 'int') [-Wformat]
    printf("%ld.%06ld\n", tv_diff.tv_sec, (long int)tv_diff.tv_usec);
            ~~~           ^~~~~~~~~~~~~~
            %d
1 warning generated.
src/detect-engine-payload.c
src/log-tlslog.c