diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2013-10-05 21:17:30 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2013-10-05 21:17:30 +0000 |
commit | 9d604b95c2e9970402cf060ad8dacec60b1de047 (patch) | |
tree | 0e56a9de96a966e8df2bd57b7672e00d776914bc /usr.bin/mandoc/roff.c | |
parent | c29d06141fbdb9137c7bafd5adfd2b39ca799c44 (diff) |
Cleanup suggested by gcc-4.8.1, following hints by Christos Zoulas:
- avoid bad qualifier casting in roff.c, roff_parsetext()
by changing the mandoc_escape arguments to "const char const **"
- avoid bad qualifier casting in mandocdb.c, index_merge()
- garbage collect a few unused variables elsewhere
Diffstat (limited to 'usr.bin/mandoc/roff.c')
-rw-r--r-- | usr.bin/mandoc/roff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/roff.c b/usr.bin/mandoc/roff.c index f5a4494d89b..c9e7832ca88 100644 --- a/usr.bin/mandoc/roff.c +++ b/usr.bin/mandoc/roff.c @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.56 2013/10/04 02:01:58 schwarze Exp $ */ +/* $Id: roff.c,v 1.57 2013/10/05 21:17:29 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org> @@ -639,7 +639,7 @@ roff_parsetext(char **bufp, size_t *szp, int pos, int *offs) /* Skip over escapes. */ p++; esc = mandoc_escape - ((const char **)&p, NULL, NULL); + ((const char const **)&p, NULL, NULL); if (ESCAPE_ERROR == esc) break; continue; |