summaryrefslogtreecommitdiffstats
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-09 11:31:43 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-09 11:31:43 +0000
commit48b1f615ccd6f22e18e6caa0135684dc84559119 (patch)
tree01deacc78fec1751c9603d62f9046a803a9a5e07 /mandoc.h
parente8a3453579a72aae8c47741db7c4ea6dbb18ccc5 (diff)
downloadmandoc-48b1f615ccd6f22e18e6caa0135684dc84559119.tar.gz
mark defos as const; nobody needs to change it,
and it is occasionally useful to be able to pass literal strings
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mandoc.h b/mandoc.h
index ff77e642..5df81b46 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -419,7 +419,8 @@ int mchars_spec2cp(const struct mchars *,
const char *, size_t);
const char *mchars_spec2str(const struct mchars *,
const char *, size_t, size_t *);
-struct mparse *mparse_alloc(int, enum mandoclevel, mandocmsg, char *);
+struct mparse *mparse_alloc(int, enum mandoclevel, mandocmsg,
+ const char *);
void mparse_free(struct mparse *);
void mparse_keep(struct mparse *);
enum mandoclevel mparse_readfd(struct mparse *, int, const char *);