diff options
author | paulo <paul@bayleaf.org.uk> | 2010-01-28 17:41:28 +0000 |
---|---|---|
committer | paulo <paul@bayleaf.org.uk> | 2010-01-28 17:41:28 +0000 |
commit | 4daba96cdd1dd33b21d8b7cc96b5a5b3c6230e41 (patch) | |
tree | a16d0b34403b3ec97c7ac315038d52e480aa6b5a /tests/test-stream.c | |
parent | 63fdb51ba64992b4e26f248f80079a84b96f6270 (diff) | |
download | quagga-4daba96cdd1dd33b21d8b7cc96b5a5b3c6230e41.tar.bz2 quagga-4daba96cdd1dd33b21d8b7cc96b5a5b3c6230e41.tar.xz |
Changed zclient to use qfiles etc when we have a nexus. For BGP client
it runs in the routing_nexus. Makefile tidied. Fixed a few warnings.
Re-enabled zclient, horrors of horrors bpg_nexthop thought it OK to
poke arround with zclients threads directly. Now fixed, all private to
zclient.
Diffstat (limited to 'tests/test-stream.c')
-rw-r--r-- | tests/test-stream.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-stream.c b/tests/test-stream.c index 785ce588..e145436f 100644 --- a/tests/test-stream.c +++ b/tests/test-stream.c @@ -2,7 +2,7 @@ #include <stream.h> #include <thread.h> -static long int ham = 0xdeadbeefdeadbeef; +static int64_t ham = 0xdeadbeefdeadbeef; struct thread_master *master; static void @@ -11,9 +11,9 @@ print_stream (struct stream *s) size_t getp = stream_get_getp (s); printf ("endp: %ld, readable: %ld, writeable: %ld\n", - stream_get_endp (s), - STREAM_READABLE (s), - STREAM_WRITEABLE (s)); + (long int)stream_get_endp (s), + (long int)STREAM_READABLE (s), + (long int)STREAM_WRITEABLE (s)); while (STREAM_READABLE (s)) { @@ -48,7 +48,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%llx\n", (long long unsigned)stream_getq (s)); return 0; } |