diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-05-03 18:39:34 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-05-03 18:39:34 +0000 |
commit | 520a0876835a9bf8d8392782bf02058e7a984702 (patch) | |
tree | b42db81f4ab8926b53f0671b24b325d6b3596a18 /manpath.c | |
parent | ca55ad44406efe64b843dd8c29dc03d4874c092a (diff) | |
download | mandoc-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) |