aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-05-18 22:36:00 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-05-18 22:36:00 +0000
commitbd46e58f5b193f62d848bbebfa452aad87c805de (patch)
treee998e008d27864d1cd78364c7632a96aeaacfad3
parent7d82b0c31d80863ecf01093c17f6b49fef90edda (diff)
downloadmandoc-bd46e58f5b193f62d848bbebfa452aad87c805de.tar.gz
mandoc-bd46e58f5b193f62d848bbebfa452aad87c805de.tar.zst
mandoc-bd46e58f5b193f62d848bbebfa452aad87c805de.zip
Do not hardcode "makewhatis" in a warning message, use BINM_MAKEWHATIS.
Patch from Peter Bray <pdb_ml at yahoo dot com dot au>.
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index eb056230..53f34f47 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.265 2016/04/14 20:55:48 schwarze Exp $ */
+/* $Id: main.c,v 1.266 2016/05/18 22:36:00 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014-2016 Ingo Schwarze <schwarze@openbsd.org>
@@ -664,8 +664,8 @@ fs_lookup(const struct manpaths *paths, size_t ipath,
found:
#if HAVE_SQLITE3
- warnx("outdated mandoc.db lacks %s(%s) entry, run makewhatis %s",
- name, sec, paths->paths[ipath]);
+ warnx("outdated mandoc.db lacks %s(%s) entry, run %s %s",
+ name, sec, BINM_MAKEWHATIS, paths->paths[ipath]);
#endif
*res = mandoc_reallocarray(*res, ++*ressz, sizeof(struct manpage));
page = *res + (*ressz - 1);