From: Marcel Holtmann Date: Mon, 29 Jun 2009 19:46:45 +0000 (+0200) Subject: Fix detection of invalid IP configuration methods X-Git-Tag: 0.20~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16aa8aae69006b5ef2abd17dfb3883564252f43b;p=platform%2Fupstream%2Fconnman.git Fix detection of invalid IP configuration methods --- diff --git a/src/ipconfig.c b/src/ipconfig.c index e272e39..bd52fc3 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -84,7 +84,7 @@ const char *__connman_ipconfig_method2string(enum connman_ipconfig_method method { switch (method) { case CONNMAN_IPCONFIG_METHOD_UNKNOWN: - return "unknown"; + break; case CONNMAN_IPCONFIG_METHOD_OFF: return "off"; case CONNMAN_IPCONFIG_METHOD_STATIC: @@ -93,7 +93,7 @@ const char *__connman_ipconfig_method2string(enum connman_ipconfig_method method return "dhcp"; } - return "unknown"; + return NULL; } enum connman_ipconfig_method __connman_ipconfig_string2method(const char *method)