diff options
author | Christian Pointner <equinox@spreadspace.org> | 2013-10-07 11:37:35 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2013-10-07 11:37:35 +0000 |
commit | 0b635145d3a16f4e6bb4182956917a320afc1bd7 (patch) | |
tree | 83a56b7225f564a1a6d3c3a12a7f4dab3505ceff /src/log.c | |
parent | configure 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |