diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2015-03-03 08:51:53 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-05-30 03:27:26 +0200 |
commit | 6c4f4e6e6a00d412f2c683f0a4232389ee7235f8 (patch) | |
tree | 7dbee5d120c31c701b63ac92585aff3087caf8da /lib/buffer.c | |
parent | *: use long long to print time_t (diff) | |
download | frr-6c4f4e6e6a00d412f2c683f0a4232389ee7235f8.tar.xz frr-6c4f4e6e6a00d412f2c683f0a4232389ee7235f8.zip |
*: use void * for printing pointers
On higher warning levels, compilers expect %p printf arguments to be
void *. Since format string / argument warnings can be useful
otherwise, let's get rid of this noise by sprinkling casts to void *
over printf calls.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/buffer.c')
-rw-r--r-- | lib/buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/buffer.c b/lib/buffer.c index 45e2e1c50..b689549ed 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)); } |