aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/manpath.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-05-03 18:39:34 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-05-03 18:39:34 +0000
commit520a0876835a9bf8d8392782bf02058e7a984702 (patch)
treeb42db81f4ab8926b53f0671b24b325d6b3596a18 /manpath.c
parentca55ad44406efe64b843dd8c29dc03d4874c092a (diff)
downloadmandoc-520a0876835a9bf8d8392782bf02058e7a984702.tar.gz
mandoc-520a0876835a9bf8d8392782bf02058e7a984702.tar.zst
mandoc-520a0876835a9bf8d8392782bf02058e7a984702.zip
avoid duplicate "bad argument" error message, also shortening the code
Diffstat (limited to 'manpath.c')
-rw-r--r--manpath.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/manpath.c b/manpath.c
index 1446787a..703d6328 100644
--- a/manpath.c
+++ b/manpath.c
@@ -1,4 +1,4 @@
-/* $Id: manpath.c,v 1.38 2019/05/03 18:23:53 schwarze Exp $ */
+/* $Id: manpath.c,v 1.39 2019/05/03 18:39:34 schwarze Exp $ */
/*
* Copyright (c) 2011,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -332,8 +332,7 @@ manconf_output(struct manoutput *conf, const char *cp, int fromfile)
conf->toc = 1;
return 0;
default:
- if (fromfile)
- warnx("-O %s: Bad argument", cp);
+ warnx("-O %s: Bad argument", cp);
return -1;
}
if (fromfile == 0)