diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-09 11:31:43 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-09 11:31:43 +0000 |
commit | 6cee093f50dd39b838bed35cea223b8d4a610f06 (patch) | |
tree | 2046a9ba0de8f00ad38d56abdceb94d3d278f9b4 /read.c | |
parent | 2022aa054cb9e537289b1b4d6296e0410e4f98a0 (diff) | |
download | mandoc-6cee093f50dd39b838bed35cea223b8d4a610f06.tar.gz mandoc-6cee093f50dd39b838bed35cea223b8d4a610f06.tar.zst mandoc-6cee093f50dd39b838bed35cea223b8d4a610f06.zip |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.68 2014/07/07 21:36:20 schwarze Exp $ */ +/* $Id: read.c,v 1.69 2014/07/09 11:31:43 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -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; |