diff options
author | Glenn L McGrath | 2004-09-14 17:24:59 +0000 |
---|---|---|
committer | Glenn L McGrath | 2004-09-14 17:24:59 +0000 |
commit | d4004ee6a933eaf3d3843624d8c63e922db8d7dd (patch) | |
tree | cef7a75838b66f62fb18c2b0f2479d29ce0422ba /networking/ifupdown.c | |
parent | ab1955c2367d18e25fde1791a2660ae69976c623 (diff) | |
download | busybox-d4004ee6a933eaf3d3843624d8c63e922db8d7dd.zip busybox-d4004ee6a933eaf3d3843624d8c63e922db8d7dd.tar.gz |
Patch from Felipe Kellermann, remove some unnecessary dups, i declared a few extra const's also.
Diffstat (limited to 'networking/ifupdown.c')
-rw-r--r-- | networking/ifupdown.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index b2ce2a0..1842be5 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c @@ -699,7 +699,7 @@ static const llist_t *find_list_string(const llist_t *list, const char *string) return(NULL); } -static struct interfaces_file_t *read_interfaces(char *filename) +static struct interfaces_file_t *read_interfaces(const char *filename) { #ifdef CONFIG_FEATURE_IFUPDOWN_MAPPING struct mapping_defn_t *currmap = NULL; @@ -1192,7 +1192,7 @@ extern int ifupdown_main(int argc, char **argv) FILE *state_fp = NULL; llist_t *state_list = NULL; llist_t *target_list = NULL; - char *interfaces = "/etc/network/interfaces"; + const char *interfaces = "/etc/network/interfaces"; const char *statefile = "/var/run/ifstate"; #ifdef CONFIG_FEATURE_IFUPDOWN_MAPPING @@ -1219,7 +1219,7 @@ extern int ifupdown_main(int argc, char **argv) { switch (i) { case 'i': /* interfaces */ - interfaces = bb_xstrdup(optarg); + interfaces = optarg; break; case 'v': /* verbose */ verbose = 1; |