From: Stefan Knoblich Date: Thu, 10 Jan 2013 17:41:16 +0000 (+0100) Subject: ftmod_pritap: Use strcmp() for "none" and "all" in parse_debug() X-Git-Tag: v1.3.13~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42bb1040dee98aa4d03cf8048f30b0a341f49ec8;p=thirdparty%2Ffreeswitch.git ftmod_pritap: Use strcmp() for "none" and "all" in parse_debug() Signed-off-by: Stefan Knoblich --- diff --git a/libs/freetdm/src/ftmod/ftmod_pritap/ftmod_pritap.c b/libs/freetdm/src/ftmod/ftmod_pritap/ftmod_pritap.c index d716287910..be3711e604 100644 --- a/libs/freetdm/src/ftmod/ftmod_pritap/ftmod_pritap.c +++ b/libs/freetdm/src/ftmod/ftmod_pritap/ftmod_pritap.c @@ -132,12 +132,12 @@ static int parse_debug(const char *in) return 0; } - if (strstr(in, "all")) { - return PRI_DEBUG_ALL; + if (!strcmp(in, "none")) { + return 0; } - if (strstr(in, "none")) { - return 0; + if (!strcmp(in, "all")) { + return PRI_DEBUG_ALL; } if (strstr(in, "q921_all")) {