Roy's Projects
/
dhcpcd-ui
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fc7d28
)
Work with older dhcpcd's again re wireless ssid.
author
Roy Marples
<roy@marples.name>
Thu, 2 Oct 2014 08:58:44 +0000
(08:58 +0000)
committer
Roy Marples
<roy@marples.name>
Thu, 2 Oct 2014 08:58:44 +0000
(08:58 +0000)
Fix a compile problem.
src/libdhcpcd/dhcpcd.c
patch
|
blob
|
history
diff --git
a/src/libdhcpcd/dhcpcd.c
b/src/libdhcpcd/dhcpcd.c
index 9861dd172bc33dbaa1b9ca68a82cb2860d04809e..23c5428733ae1ed2523e18475de65d7c3e116600 100644
(file)
--- a/
src/libdhcpcd/dhcpcd.c
+++ b/
src/libdhcpcd/dhcpcd.c
@@
-261,7
+261,7
@@
dhcpcd_encode_string_escape(char *dst, size_t len, const char *src, size_t slen)
{
const char *end;
size_t bytes;
-
char
c;
+
int
c;
end = src + slen;
bytes = 0;
@@
-648,6
+648,8
@@
dhcpcd_new_if(DHCPCD_CONNECTION *con, char *data, size_t len)
i->up = strtobool(dhcpcd_get_value(i, "if_up"));
i->wireless = strtobool(dhcpcd_get_value(i, "ifwireless"));
i->ssid = dhcpcd_get_value(i, "ifssid");
+ if (i->ssid == NULL && i->wireless)
+ i->ssid = dhcpcd_get_value(i, i->up ? "new_ssid" : "old_ssid");
/* Sort! */
n = nl = NULL;