diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2015-03-03 08:51:53 +0100 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-05-29 21:27:26 -0400 |
| commit | 6c4f4e6e6a00d412f2c683f0a4232389ee7235f8 (patch) | |
| tree | 7dbee5d120c31c701b63ac92585aff3087caf8da /lib/stream.c | |
| parent | 8f2c16aab0388ea624ea67cf9a025a662ed9a84b (diff) | |
*: 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/stream.c')
| -rw-r--r-- | lib/stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stream.c b/lib/stream.c index 27f13d7698..716f361dc8 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)\ |
