remove useless \0, and fix formatting.
authorLuigi Rizzo <rizzo@icir.org>
Tue, 11 Apr 2006 23:54:33 +0000 (23:54 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Tue, 11 Apr 2006 23:54:33 +0000 (23:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19437 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index c9ad6b1..eaaa6f5 100644 (file)
@@ -8882,11 +8882,12 @@ static int sip_do_debug(int fd, int argc, char *argv[])
        if (argc != 2) {
                if (argc != 4) 
                        return RESULT_SHOWUSAGE;
-               else if (strncmp(argv[2], "ip\0", 3) == 0)
+               else if (strncmp(argv[2], "ip", 3) == 0)
                        return sip_do_debug_ip(fd, argc, argv);
-               else if (strncmp(argv[2], "peer\0", 5) == 0)
+               else if (strncmp(argv[2], "peer", 5) == 0)
                        return sip_do_debug_peer(fd, argc, argv);
-               else return RESULT_SHOWUSAGE;
+               else
+                       return RESULT_SHOWUSAGE;
        }
        ast_set_flag(&global_flags[1], SIP_PAGE2_DEBUG_CONSOLE);
        memset(&debugaddr, 0, sizeof(debugaddr));