summaryrefslogtreecommitdiffstats
path: root/if-options.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-05 13:28:44 +0000
committerRoy Marples <roy@marples.name>2008-09-05 13:28:44 +0000
commit9f7780b07bd3216da3fb83f95b9976e4fd257484 (patch)
tree0a9af08cdb08cf37fb1104b6349ea87bfbf5b42b /if-options.c
parentf6de5860b6c6a47c21d09ee4203895f182c01eaa (diff)
downloaddhcpcd-9f7780b07bd3216da3fb83f95b9976e4fd257484.tar.xz
Don't use a needless buffer for cffile.
Diffstat (limited to 'if-options.c')
-rw-r--r--if-options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/if-options.c b/if-options.c
index 23b8ca65..6cb3bcb4 100644
--- a/if-options.c
+++ b/if-options.c
@@ -39,8 +39,8 @@
#include <unistd.h>
#include <time.h>
-#include "common.h"
#include "config.h"
+#include "common.h"
#include "dhcpf.h"
#include "if-options.h"
#include "logger.h"
@@ -567,7 +567,7 @@ read_config(const char *file, const char *ifname)
"%s %s", PACKAGE, VERSION);
/* Parse our options file */
- f = fopen(file, "r");
+ f = fopen(file ? file : CONFIG, "r");
if (!f)
return ifo;