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:
23058cd
)
Switch to g_strcmp0 instead of g_ascii_strcasecmp
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 7 Dec 2009 06:32:06 +0000
(07:32 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 7 Dec 2009 06:32:06 +0000
(07:32 +0100)
plugins/dhclient.c
patch
|
blob
|
history
diff --git
a/plugins/dhclient.c
b/plugins/dhclient.c
index
0f7e768
..
cb70ef7
100644
(file)
--- a/
plugins/dhclient.c
+++ b/
plugins/dhclient.c
@@
-290,15
+290,15
@@
static DBusHandlerResult dhclient_filter(DBusConnection *conn,
if (g_strcmp0(key, "new_ip_address") == 0) {
connman_dhcp_set_value(task->dhcp, "Address", value);
if (g_strcmp0(key, "new_ip_address") == 0) {
connman_dhcp_set_value(task->dhcp, "Address", value);
- } else if (g_
ascii_strcasecmp
(key, "new_subnet_mask") == 0) {
+ } else if (g_
strcmp0
(key, "new_subnet_mask") == 0) {
connman_dhcp_set_value(task->dhcp, "Netmask", value);
connman_dhcp_set_value(task->dhcp, "Netmask", value);
- } else if (g_
ascii_strcasecmp
(key, "new_routers") == 0) {
+ } else if (g_
strcmp0
(key, "new_routers") == 0) {
connman_dhcp_set_value(task->dhcp, "Gateway", value);
connman_dhcp_set_value(task->dhcp, "Gateway", value);
- } else if (g_
ascii_strcasecmp
(key, "new_network_number") == 0) {
+ } else if (g_
strcmp0
(key, "new_network_number") == 0) {
connman_dhcp_set_value(task->dhcp, "Network", value);
connman_dhcp_set_value(task->dhcp, "Network", value);
- } else if (g_
ascii_strcasecmp
(key, "new_broadcast_address") == 0) {
+ } else if (g_
strcmp0
(key, "new_broadcast_address") == 0) {
connman_dhcp_set_value(task->dhcp, "Broadcast", value);
connman_dhcp_set_value(task->dhcp, "Broadcast", value);
- } else if (g_
ascii_strcasecmp
(key, "new_domain_name_servers") == 0) {
+ } else if (g_
strcmp0
(key, "new_domain_name_servers") == 0) {
connman_dhcp_set_value(task->dhcp, "Nameserver", value);
} else if (g_ascii_strcasecmp(key, "new_domain_name") == 0) {
} else if (g_ascii_strcasecmp(key, "new_domain_search") == 0) {
connman_dhcp_set_value(task->dhcp, "Nameserver", value);
} else if (g_ascii_strcasecmp(key, "new_domain_name") == 0) {
} else if (g_ascii_strcasecmp(key, "new_domain_search") == 0) {