summaryrefslogtreecommitdiffstats
path: root/mdoc.c
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 /mdoc.c
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 'mdoc.c')
-rw-r--r--mdoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc.c b/mdoc.c
index ead01c15..d5ae55cf 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -189,7 +189,7 @@ mdoc_free(struct mdoc *mdoc)
*/
struct mdoc *
mdoc_alloc(struct roff *roff, struct mparse *parse,
- char *defos, int quick)
+ const char *defos, int quick)
{
struct mdoc *p;