summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2013-06-27 10:47:28 +0100
committerColin Watson <cjwatson@debian.org>2013-06-27 10:47:28 +0100
commit1d8e706d5b5ed438e725a3e925987b6c9659ced0 (patch)
treeaef449cb8a86b7577684e0e56670902111f5f62c /include
parent36eb490249ab9bc193d90dcf0d9884cf98cd7f8d (diff)
* docs/HACKING: Mention that xasprintf may be more readable than
appendstr. * include/manconfig.h.in (mkdbname): Rephrase using xasprintf. * lib/decompress.c (decompress_open): Likewise. * lib/pathsearch.c (pathsearch): Likewise. * lib/tempfile.c (create_tempdir): Likewise. * lib/util.c (remove_directory): Likewise. * src/check_mandirs.c (add_dir_entries, mkcatdirs): Likewise. * src/compression.c (comp_file): Likewise. * src/convert_name.c (convert_name): Likewise. * src/globbing.c (make_pattern, match_in_directory, look_for_file): Likewise. * src/man.c (parse_opt, display_filesystem, display_database, do_global_apropos_section): Likewise. * src/manconv_client.c (add_manconv): Likewise. * src/mandb.c (mandb, process_manpath, purge_catsubdirs, purge_catdirs, main): Likewise. * src/manp.c (pathappend, get_nls_manpath, get_manpath, read_config_file, has_mandir): Likewise. * src/ult_src.c (ult_hardlink): Likewise. * src/whatis.c (simple_convert, use_grep, display, main): Likewise. * src/zsoelim.l (zsoelim_open_file): Likewise. * src/accessdb.c (parse_opt): Use mkdbname to construct default database path.
Diffstat (limited to 'include')
-rw-r--r--include/manconfig.h.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/manconfig.h.in b/include/manconfig.h.in
index a6056834..f4853123 100644
--- a/include/manconfig.h.in
+++ b/include/manconfig.h.in
@@ -33,6 +33,8 @@
#ifndef MANCONFIG_H
#define MANCONFIG_H
+#include "xvasprintf.h"
+
/* STD_SECTIONS must contain all of your man hierarchy subdirectories. The
order is important. Manual pages will be displayed in this order. Ie
if "1" comes before "2", then a kill(1) will be displayed in preference to
@@ -95,7 +97,7 @@
/* The name of the databases. DB_EXT depends on the database type in use */
#define MAN_DB "/index" DB_EXT
-#define mkdbname(path) appendstr (NULL, path, MAN_DB, NULL)
+#define mkdbname(path) xasprintf ("%s%s", path, MAN_DB)
/* The locations of the following files were determined by ../configure so
some of them may be incorrect. Edit as necessary */