summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-05-24 11:58:07 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-05-24 13:05:14 (GMT)
commit5b2bf526174ae44288cbaee5c410ffda02a9aa58 (patch)
tree966486509af283b2c852488254344aa5f17f993f /client
parent7cd13920d00abbb4b19e64fa13f5ebed80c04a37 (diff)
downloadconnman-5b2bf526174ae44288cbaee5c410ffda02a9aa58.zip
connman-5b2bf526174ae44288cbaee5c410ffda02a9aa58.tar.gz
connman-5b2bf526174ae44288cbaee5c410ffda02a9aa58.tar.bz2
client: Accept correctly spelled option name
Accept also correctly spelled version of 'preferred' option.
Diffstat (limited to 'client')
-rw-r--r--client/commands.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/commands.c b/client/commands.c
index bd33284..1a87c53 100644
--- 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;
}