summaryrefslogtreecommitdiff
path: root/networking/ifupdown.c
diff options
context:
space:
mode:
authorGlenn L McGrath2004-09-14 17:24:59 +0000
committerGlenn L McGrath2004-09-14 17:24:59 +0000
commitd4004ee6a933eaf3d3843624d8c63e922db8d7dd (patch)
treecef7a75838b66f62fb18c2b0f2479d29ce0422ba /networking/ifupdown.c
parentab1955c2367d18e25fde1791a2660ae69976c623 (diff)
downloadbusybox-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.c6
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;