summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-03 00:22:27 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-03 00:22:27 +0100
commit67c8529a4fe6b9e10569cf02b18dbb83766989b0 (patch)
tree168ffaea58d7a14f31452c4dcd6c780d41284648 /plugins
parent296db43fcf95716fbdcb25e65164772a491605f5 (diff)
downloadconnman-67c8529a4fe6b9e10569cf02b18dbb83766989b0.tar.gz
connman-67c8529a4fe6b9e10569cf02b18dbb83766989b0.tar.bz2
connman-67c8529a4fe6b9e10569cf02b18dbb83766989b0.zip
Optimize SSID character replacement
Diffstat (limited to 'plugins')
-rw-r--r--plugins/wifi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 87ad8ccc..494f53bc 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -182,9 +182,9 @@ static void scan_result(struct connman_element *parent,
for (i = 0; i < strlen(temp); i++) {
if (temp[i] == ' ' || temp[i] == '.' || temp[i] == '-')
temp[i] = '_';
- if (temp[i] == '(' || temp[i] == ')')
+ else if (temp[i] == '(' || temp[i] == ')')
temp[i] = '_';
- if (g_ascii_isprint(temp[i]) == FALSE)
+ else if (g_ascii_isprint(temp[i]) == FALSE)
temp[i] = '_';
temp[i] = g_ascii_tolower(temp[i]);
}