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 /libmdoc.h | |
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 'libmdoc.h')
-rw-r--r-- | libmdoc.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: libmdoc.h,v 1.85 2014/07/02 03:48:07 schwarze Exp $ */ +/* $Id: libmdoc.h,v 1.86 2014/07/09 11:31:43 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013 Ingo Schwarze <schwarze@openbsd.org> @@ -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 */ |