summaryrefslogtreecommitdiffstats
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
commit5adb984415e684164a7b45cb9413ef2644e149e7 (patch)
tree13d08f7bc949cec8cd6778ce66bff1cedbdbceb2
parent720fa001cacf46d69069baa9b3b16f3742e844b3 (diff)
downloadmandoc-5adb984415e684164a7b45cb9413ef2644e149e7.tar.gz
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 1847ea84..9fa27767 100644
--- a/main.c
+++ b/main.c
@@ -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);