Fix parser
authorMark Spencer <markster@digium.com>
Thu, 18 Mar 2004 06:04:22 +0000 (06:04 +0000)
committerMark Spencer <markster@digium.com>
Thu, 18 Mar 2004 06:04:22 +0000 (06:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2455 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/iax2-parser.c

index 156ed1d..9d31a8b 100755 (executable)
@@ -64,7 +64,7 @@ static void dump_string(char *output, int maxlen, void *value, int len)
 static void dump_int(char *output, int maxlen, void *value, int len)
 {
        if (len == sizeof(unsigned int))
-               snprintf(output, maxlen, "%ld", (long)ntohl(*((unsigned int *)value)));
+               snprintf(output, maxlen, "%lu", (unsigned long)ntohl(*((unsigned int *)value)));
        else
                snprintf(output, maxlen, "Invalid INT");
 }