projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8429b31
)
Fix detection of invalid IP configuration methods
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 29 Jun 2009 19:46:45 +0000
(21:46 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 29 Jun 2009 19:46:45 +0000
(21:46 +0200)
src/ipconfig.c
patch
|
blob
|
history
diff --git
a/src/ipconfig.c
b/src/ipconfig.c
index
e272e39
..
bd52fc3
100644
(file)
--- 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)