diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/buffer.c | 3 | ||||
-rw-r--r-- | lib/stream.c | 2 | ||||
-rw-r--r-- | lib/zclient.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/lib/buffer.c b/lib/buffer.c index 45e2e1c5..b689549e 100644 --- a/lib/buffer.c +++ b/lib/buffer.c @@ -322,7 +322,8 @@ buffer_flush_window (struct buffer *b, int fd, int width, int height, /* This should absolutely never occur. */ zlog_err("%s: corruption detected: iov_small overflowed; " "head %p, tail %p, head->next %p", - __func__, b->head, b->tail, b->head->next); + __func__, (void *)b->head, (void *)b->tail, + (void *)b->head->next); iov = XMALLOC(MTYPE_TMP, iov_alloc*sizeof(*iov)); memcpy(iov, small_iov, sizeof(small_iov)); } diff --git a/lib/stream.c b/lib/stream.c index c6f20c85..e13da08b 100644 --- a/lib/stream.c +++ b/lib/stream.c @@ -53,7 +53,7 @@ */ #define STREAM_WARN_OFFSETS(S) \ zlog_warn ("&(struct stream): %p, size: %lu, getp: %lu, endp: %lu\n", \ - (S), \ + (void *)(S), \ (unsigned long) (S)->size, \ (unsigned long) (S)->getp, \ (unsigned long) (S)->endp)\ diff --git a/lib/zclient.c b/lib/zclient.c index 41ecbb61..963c7052 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -919,7 +919,7 @@ zclient_read (struct thread *thread) length -= ZEBRA_HEADER_SIZE; if (zclient_debug) - zlog_debug("zclient 0x%p command 0x%x \n", zclient, command); + zlog_debug("zclient 0x%p command 0x%x \n", (void *)zclient, command); switch (command) { |