summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-10-07 11:37:35 +0000
committerChristian Pointner <equinox@spreadspace.org>2013-10-07 11:37:35 +0000
commit0b635145d3a16f4e6bb4182956917a320afc1bd7 (patch)
tree83a56b7225f564a1a6d3c3a12a7f4dab3505ceff /src/log.c
parentconfigure cleanup (diff)
fixed build with -Wall
added build support for clang git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@67 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/log.c b/src/log.c
index c3aa346..dd75cea 100644
--- a/src/log.c
+++ b/src/log.c
@@ -239,8 +239,8 @@ void log_print_hex_dump(log_prio_t prio, const uint8_t* buf, uint32_t len)
int offset = snprintf(msg, MSG_LENGTH_MAX, "dump(%d): ", len);
if(offset < 0)
return;
- uint8_t* ptr = &msg[offset];
-
+ char* ptr = &msg[offset];
+
for(i=0; i < len; i++) {
if(((i+1)*3) >= (MSG_LENGTH_MAX - offset))
break;