diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-07-16 18:38:46 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-07-16 18:38:46 +0000 |
commit | 01a0340f9f5b7bfb02d6fa24d442f18ff6622c74 (patch) | |
tree | 5a883b0ee03e45600638db8b4a86fe4d58427961 /sbin/dhclient/clparse.c | |
parent | 695f50cdccce686640a2eea04a2b1c170545dab9 (diff) |
Rejig struct string_list to use char array rather than char pointer, and
eliminate new_parse_string. alloc.c becomes redundant. Junk a couple of
unused fields (env, envc) in struct client_state.
suggestions by & ok millert@
Diffstat (limited to 'sbin/dhclient/clparse.c')
-rw-r--r-- | sbin/dhclient/clparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c index a67ea80e0a8..29eb1a735fe 100644 --- a/sbin/dhclient/clparse.c +++ b/sbin/dhclient/clparse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clparse.c,v 1.24 2005/07/16 14:09:51 krw Exp $ */ +/* $OpenBSD: clparse.c,v 1.25 2005/07/16 18:38:45 krw Exp $ */ /* Parser for dhclient config and lease files... */ @@ -835,7 +835,7 @@ parse_string_list(FILE *cfile, struct string_list **lp, int multiple) return; } - tmp = new_string_list(strlen(val) + 1); + tmp = malloc(sizeof(struct string_list) + strlen(val)); if (tmp == NULL) error("no memory for string list entry."); strlcpy(tmp->string, val, strlen(val) + 1); |