diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 05:20:03 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 05:20:03 +0100 |
commit | b2e576bb172fcce419e639216393126c94fc99fa (patch) | |
tree | 959818b9660ba8957b5d211e6067e10c2774fc62 /src/options.c | |
parent | 2c6147d4d47e68301e13545fc0a95bd3a16f0e30 (diff) | |
download | fastd-b2e576bb172fcce419e639216393126c94fc99fa.tar fastd-b2e576bb172fcce419e639216393126c94fc99fa.zip |
Improve ifname configuration handling
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/options.c b/src/options.c index 44b097b..a84830b 100644 --- a/src/options.c +++ b/src/options.c @@ -228,8 +228,7 @@ static void option_mode(const char *arg) { /** Handles the --interface option */ static void option_interface(const char *arg) { - free(conf.ifname); - conf.ifname = fastd_strdup(arg); + fastd_config_ifname(NULL, arg); } /** Handles the --mtu option */ |