[asterisk-commits] trunk r19437 - /trunk/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Apr 11 16:54:35 MST 2006
Author: rizzo
Date: Tue Apr 11 18:54:33 2006
New Revision: 19437
URL: http://svn.digium.com/view/asterisk?rev=19437&view=rev
Log:
remove useless \0, and fix formatting.
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=19437&r1=19436&r2=19437&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Apr 11 18:54:33 2006
@@ -8882,11 +8882,12 @@
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));
More information about the asterisk-commits
mailing list