aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-12-30 18:44:06 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-12-30 18:44:06 +0000
commite7167875512bf0e3a78731060319b1d9e15a4ad3 (patch)
treefa8c4e8a6396abb6bc7aea8cc781beb53bbc22b9
parentfbe09feeade36a30f1baebf2a410b3fcea14da90 (diff)
downloadmandoc-e7167875512bf0e3a78731060319b1d9e15a4ad3.tar.gz
mandoc-e7167875512bf0e3a78731060319b1d9e15a4ad3.tar.zst
mandoc-e7167875512bf0e3a78731060319b1d9e15a4ad3.zip
Oops, missed one:
Remove duplicate const specifier from a call to mandoc_escape(). Found by Thomas Klausner <wiz at NetBSD dot org> using clang. No functional change.
-rw-r--r--roff.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/roff.c b/roff.c
index e33216c4..42240d21 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.188 2013/12/25 00:50:05 schwarze Exp $ */
+/* $Id: roff.c,v 1.189 2013/12/30 18:44:06 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
@@ -646,8 +646,7 @@ roff_parsetext(char **bufp, size_t *szp, int pos, int *offs)
if ('\\' == *p) {
/* Skip over escapes. */
p++;
- esc = mandoc_escape
- ((const char const **)&p, NULL, NULL);
+ esc = mandoc_escape((const char **)&p, NULL, NULL);
if (ESCAPE_ERROR == esc)
break;
continue;