projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cd1392
)
client: Accept correctly spelled option name
author
Patrik Flykt
<patrik.flykt@linux.intel.com>
Fri, 24 May 2013 11:58:07 +0000
(14:58 +0300)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Fri, 24 May 2013 13:05:14 +0000
(16:05 +0300)
Accept also correctly spelled version of 'preferred' option.
client/commands.c
patch
|
blob
|
history
diff --git
a/client/commands.c
b/client/commands.c
index
bd33284
..
1a87c53
100644
(file)
--- a/
client/commands.c
+++ b/
client/commands.c
@@
-738,10
+738,12
@@
static void config_append_ipv6(DBusMessageIter *iter, void *user_data)
if (opts[1] != NULL) {
append->values = 2;
- if (g_strcmp0(opts[1], "prefered") != 0) {
+ if (g_strcmp0(opts[1], "prefered") != 0 &&
+ g_strcmp0(opts[1],
+ "preferred") != 0) {
fprintf(stderr, "Error %s: %s\n",
opts[1],
- strerror(
-
EINVAL));
+ strerror(EINVAL));
return;
}