aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-09-17 23:12:21 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-09-17 23:12:21 +0000
commit5979c85913d6f3c76ac1ba7dfc2cdd63b6d24317 (patch)
treec991a3f71649badbe9d01feffe65fb4c338b6d8b
parentb6ce96dd9e0dc16f55f190886107a778a7edee51 (diff)
downloadmandoc-5979c85913d6f3c76ac1ba7dfc2cdd63b6d24317.tar.gz
mandoc-5979c85913d6f3c76ac1ba7dfc2cdd63b6d24317.tar.zst
mandoc-5979c85913d6f3c76ac1ba7dfc2cdd63b6d24317.zip
Merge OpenBSD rev. 1.43:
Kristaps changed the size member of struct manpaths from int to size_t. No functional change.
-rw-r--r--mandocdb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 57d67e5d..d0fc9d20 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1,4 +1,4 @@
-/* $Id: mandocdb.c,v 1.49.2.3 2013/09/17 23:07:22 schwarze Exp $ */
+/* $Id: mandocdb.c,v 1.49.2.4 2013/09/17 23:12:21 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org>
@@ -299,7 +299,7 @@ main(int argc, char *argv[])
int ch, i, flags;
DB *hash; /* temporary keyword hashtable */
BTREEINFO info; /* btree configuration */
- size_t sz1, sz2;
+ size_t sz1, sz2, ipath;
struct buf buf, /* keyword buffer */
dbuf; /* description buffer */
struct of *of; /* list of files for processing */
@@ -482,7 +482,7 @@ main(int argc, char *argv[])
} else
manpath_parse(&dirs, dir, NULL, NULL);
- for (i = 0; i < dirs.sz; i++) {
+ for (ipath = 0; ipath < dirs.sz; ipath++) {
/*
* Go to the root of the respective manual tree.
@@ -490,8 +490,8 @@ main(int argc, char *argv[])
* They are indexed relative to the root.
*/
- if (-1 == chdir(dirs.paths[i])) {
- perror(dirs.paths[i]);
+ if (-1 == chdir(dirs.paths[ipath])) {
+ perror(dirs.paths[ipath]);
exit((int)MANDOCLEVEL_SYSERR);
}