From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id r8HNCLGL005812 for ; Tue, 17 Sep 2013 19:12:21 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id r8HNCLNu001996; Tue, 17 Sep 2013 19:12:21 -0400 (EDT) Date: Tue, 17 Sep 2013 19:12:21 -0400 (EDT) Message-Id: <201309172312.r8HNCLNu001996@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Merge OpenBSD rev. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Merge OpenBSD rev. 1.43: Kristaps changed the size member of struct manpaths from int to size_t. No functional change. Tags: ---- VERSION_1_12 Modified Files: -------------- mdocml: mandocdb.c Revision Data ------------- Index: mandocdb.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandocdb.c,v retrieving revision 1.49.2.3 retrieving revision 1.49.2.4 diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.49.2.3 -r1.49.2.4 --- mandocdb.c +++ mandocdb.c @@ -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); } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv