summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-24 21:43:05 -0400
committerJune McEnroe <june@causal.agency>2020-08-24 21:54:17 -0400
commit911fd8948ffd2cd4231e95c18ca7821ef886d328 (patch)
tree59711385e6836a6ffb9968c6d98e6a9baf32187b
parentImport xdg.c from catgirl (diff)
downloadpounce-911fd8948ffd2cd4231e95c18ca7821ef886d328.tar.gz
pounce-911fd8948ffd2cd4231e95c18ca7821ef886d328.zip
Use configOpen in getopt_config
-rw-r--r--config.c7
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);
 			}
mmit/bin/man1/downgrade.1?id=55dfaa3c16c9bfda165d823d74034fda0dc6b4f6&follow=1'>Add downgrade IRC botJune McEnroe 2021-09-14Sort by title if authors matchJune McEnroe 2021-09-13Swap-remove tags as they're foundJune McEnroe 2021-09-12Replace htagml regex with strncmpJune McEnroe 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe