From 911fd8948ffd2cd4231e95c18ca7821ef886d328 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 24 Aug 2020 21:43:05 -0400 Subject: Use configOpen in getopt_config --- config.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'config.c') 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); } -- cgit 1.4.1