summaryrefslogtreecommitdiffstats
path: root/libmdoc.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 /libmdoc.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 'libmdoc.h')
-rw-r--r--libmdoc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmdoc.h b/libmdoc.h
index 417948c3..3cc58f80 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -25,7 +25,7 @@ enum mdoc_next {
struct mdoc {
struct mparse *parse; /* parse pointer */
- char *defos; /* default argument for .Os */
+ const char *defos; /* default argument for .Os */
int quick; /* abort parse early */
int flags; /* parse flags */
#define MDOC_HALT (1 << 0) /* error in parse: halt */