diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-10-12 20:33:31 +0200 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-05-26 17:33:33 +0200 |
commit | 6a697154ff6a93bd75fe6a9f3dbc795e17e557dc (patch) | |
tree | 11f08a472c8bdf9136124b2be040279b95b0b51c /tests | |
parent | quagga: Additional centos 6 -enable-werror fixes (diff) | |
download | frr-6a697154ff6a93bd75fe6a9f3dbc795e17e557dc.tar.xz frr-6a697154ff6a93bd75fe6a9f3dbc795e17e557dc.zip |
tests: Fix warnings from test-stream.c
test-stream is generating some compiler warnings
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
(cherry picked from commit 6169559976b33a5bf120c806135c76b1b6d943ee)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-stream.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-stream.c b/tests/test-stream.c index 5997b47d3..7ef637475 100644 --- a/tests/test-stream.c +++ b/tests/test-stream.c @@ -24,7 +24,7 @@ #include <stream.h> #include <thread.h> -static long int ham = 0xdeadbeefdeadbeef; +static unsigned long long ham = 0xdeadbeefdeadbeef; struct thread_master *master; static void @@ -32,7 +32,7 @@ print_stream (struct stream *s) { size_t getp = stream_get_getp (s); - printf ("endp: %ld, readable: %ld, writeable: %ld\n", + printf ("endp: %zu, readable: %zu, writeable: %zu\n", stream_get_endp (s), STREAM_READABLE (s), STREAM_WRITEABLE (s)); @@ -70,7 +70,7 @@ main (void) printf ("c: 0x%hhx\n", stream_getc (s)); printf ("w: 0x%hx\n", stream_getw (s)); printf ("l: 0x%x\n", stream_getl (s)); - printf ("q: 0x%lx\n", stream_getq (s)); + printf ("q: 0x%" PRIu64 "\n", stream_getq (s)); return 0; } |