aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit6cee093f50dd39b838bed35cea223b8d4a610f06 (patch)
tree2046a9ba0de8f00ad38d56abdceb94d3d278f9b4 /libmdoc.h
parent2022aa054cb9e537289b1b4d6296e0410e4f98a0 (diff)
downloadmandoc-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmdoc.h b/libmdoc.h
index f5b7d7f2..8b9b8dec 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -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 */