diff options
author | Holger Freyther <zecke@selfish.org> | 2009-01-04 21:05:01 +0000 |
---|---|---|
committer | Holger Freyther <zecke@selfish.org> | 2009-01-04 21:05:01 +0000 |
commit | ca362a602864c44389566824f16f6dde60f894ea (patch) | |
tree | 65e2b15db39e86697995bd4f18a3eb00f8d94703 /src/debug.c | |
parent | 7448a53ddbf429423910b32198b82007185b0020 (diff) |
Make gcc happy and remove a couple of warnings
Remove the callbacks from gsm_network for now. A set of different
callbacks will be back. E.g. when the paging is completed, when the
Q.931 like call handling is there...
Remove var's or move them into #if 0, remove unused stuff that looks
like we do not need it anytime soon or #if 0 them, move stuff around.
Diffstat (limited to 'src/debug.c')
-rw-r--r-- | src/debug.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c index ecd7be11d..0a35dbccc 100644 --- a/src/debug.c +++ b/src/debug.c @@ -77,7 +77,7 @@ void debug_parse_category_mask(const char *_mask) if (strcasecmp(debug_info[i].name, category_token) == 0) new_mask |= debug_info[i].number; } - } while (category_token = strtok(NULL, ":")); + } while ((category_token = strtok(NULL, ":"))); free(mask); @@ -120,3 +120,12 @@ void debugp(unsigned int subsys, char *file, int line, const char *format, ...) fflush(outfd); } +void hexdump(unsigned char *buf, int len) +{ + int i; + for (i = 0; i < len; i++) { + fprintf(stdout, "%02x ", buf[i]); + } + fprintf(stdout, "\n"); +} + |