diff options
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/config.c b/config.c index 4c58624..958ee45 100644 --- a/config.c +++ b/config.c @@ -64,11 +64,8 @@ int getopt_config( if (optind < argc) { num = 0; path = argv[optind++]; - file = fopen(path, "r"); - if (!file) { - warn("%s", path); - return clean('?'); - } + file = configOpen(path, "r"); + if (!file) return clean('?'); } else { return clean(-1); } |