diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-09 11:30:08 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-09 11:30:08 +0000 |
commit | 4c357021932a15361a8aea71adc5f60ceb835037 (patch) | |
tree | e33ee278f63ebdaac817b5c5f76dcd1b5a5199b2 /usr.bin/mandoc/mdoc.c | |
parent | f3956625d9ac20de06d77c38881947fe8e6d9d91 (diff) |
mark defos as const; nobody needs to change it,
and it is occasionally useful to be able to pass literal strings
Diffstat (limited to 'usr.bin/mandoc/mdoc.c')
-rw-r--r-- | usr.bin/mandoc/mdoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc.c b/usr.bin/mandoc/mdoc.c index adbc5238fcb..a5e2f7267b4 100644 --- a/usr.bin/mandoc/mdoc.c +++ b/usr.bin/mandoc/mdoc.c @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.109 2014/07/07 15:03:24 schwarze Exp $ */ +/* $Id: mdoc.c,v 1.110 2014/07/09 11:30:07 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -185,7 +185,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; |