summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/apropos_db.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2013-10-05 21:17:30 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2013-10-05 21:17:30 +0000
commit9d604b95c2e9970402cf060ad8dacec60b1de047 (patch)
tree0e56a9de96a966e8df2bd57b7672e00d776914bc /usr.bin/mandoc/apropos_db.c
parentc29d06141fbdb9137c7bafd5adfd2b39ca799c44 (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/apropos_db.c')
-rw-r--r--usr.bin/mandoc/apropos_db.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/mandoc/apropos_db.c b/usr.bin/mandoc/apropos_db.c
index 5b47567e0b4..6c2c0c638c3 100644
--- a/usr.bin/mandoc/apropos_db.c
+++ b/usr.bin/mandoc/apropos_db.c
@@ -1,4 +1,4 @@
-/* $Id: apropos_db.c,v 1.18 2012/04/15 11:54:47 schwarze Exp $ */
+/* $Id: apropos_db.c,v 1.19 2013/10/05 21:17:29 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -401,11 +401,10 @@ apropos_search(int pathsz, char **paths, const struct opts *opts,
{
struct rectree tree;
struct mchars *mc;
- int i, rc;
+ int i;
memset(&tree, 0, sizeof(struct rectree));
- rc = 0;
mc = mchars_alloc();
*sz = 0;
*resp = NULL;