summaryrefslogtreecommitdiffstats
path: root/read.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 /read.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 'read.c')
-rw-r--r--read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/read.c b/read.c
index dd25696c..20fa2640 100644
--- a/read.c
+++ b/read.c
@@ -65,7 +65,7 @@ struct mparse {
mandocmsg mmsg; /* warning/error message handler */
const char *file;
struct buf *secondary;
- char *defos; /* default operating system */
+ const char *defos; /* default operating system */
};
static void resize_buf(struct buf *, size_t);
@@ -781,7 +781,7 @@ out:
struct mparse *
mparse_alloc(int options, enum mandoclevel wlevel,
- mandocmsg mmsg, char *defos)
+ mandocmsg mmsg, const char *defos)
{
struct mparse *curp;