diff options
author | Christian Pointner <equinox@anytun.org> | 2012-09-25 11:45:31 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2012-09-25 11:45:31 +0000 |
commit | 4dda2b162fdab27197f371bb85842da581aee834 (patch) | |
tree | f0b10a52e541160c1739444923066c83e1c491ff /src/log.c | |
parent | configure script cleanup (diff) |
-Wall cleanup
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -35,6 +35,7 @@ #include "datatypes.h" +#include <ctype.h> #include <string.h> #include <stdarg.h> #include <stdlib.h> @@ -246,7 +247,7 @@ void log_print_hex_dump(log_prio_t prio, const u_int8_t* buf, u_int32_t len) int offset = snprintf(msg, MSG_LENGTH_MAX, "dump(%d): ", len); if(offset < 0) return; - u_int8_t* ptr = &msg[offset]; + char* ptr = &msg[offset]; for(i=0; i < len; i++) { if(((i+1)*3) >= (MSG_LENGTH_MAX - offset)) |