ftmod_pritap: Use strcmp() for "none" and "all" in parse_debug()

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
This commit is contained in:
Stefan Knoblich 2013-01-10 18:41:16 +01:00
parent fe4d5748c6
commit 42bb1040de
1 changed files with 4 additions and 4 deletions

View File

@ -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")) {