From 6cee093f50dd39b838bed35cea223b8d4a610f06 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 9 Jul 2014 11:31:43 +0000 Subject: mark defos as const; nobody needs to change it, and it is occasionally useful to be able to pass literal strings --- libmandoc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libmandoc.h') diff --git a/libmandoc.h b/libmandoc.h index a05e709c..1011cc50 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -1,4 +1,4 @@ -/* $Id: libmandoc.h,v 1.41 2014/04/20 16:46:04 schwarze Exp $ */ +/* $Id: libmandoc.h,v 1.42 2014/07/09 11:31:43 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze @@ -50,7 +50,8 @@ int mandoc_strntoi(const char *, size_t, int); const char *mandoc_a2msec(const char*); void mdoc_free(struct mdoc *); -struct mdoc *mdoc_alloc(struct roff *, struct mparse *, char *, int); +struct mdoc *mdoc_alloc(struct roff *, struct mparse *, + const char *, int); void mdoc_reset(struct mdoc *); int mdoc_parseln(struct mdoc *, int, char *, int); int mdoc_endparse(struct mdoc *); -- cgit v1.2.3-56-ge451