Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/usr.bin/apropos Pull up revisions 1.18-1.20 (requested ...
details: https://anonhg.NetBSD.org/src/rev/b49680bd491a
branches: netbsd-1-6
changeset: 529278:b49680bd491a
user: he <he%NetBSD.org@localhost>
date: Sun Nov 03 19:46:51 2002 +0000
description:
Pull up revisions 1.18-1.20 (requested by he in ticket #787):
Make these compile again, after the changes in ticket #787.
diffstat:
usr.bin/apropos/apropos.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (39 lines):
diff -r 7b5cf9127a4e -r b49680bd491a usr.bin/apropos/apropos.c
--- a/usr.bin/apropos/apropos.c Sun Nov 03 19:46:26 2002 +0000
+++ b/usr.bin/apropos/apropos.c Sun Nov 03 19:46:51 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apropos.c,v 1.17 2002/03/08 20:23:10 jdolecek Exp $ */
+/* $NetBSD: apropos.c,v 1.17.2.1 2002/11/03 19:46:51 he Exp $ */
/*
* Copyright (c) 1987, 1993, 1994
@@ -44,7 +44,7 @@
#if 0
static char sccsid[] = "@(#)apropos.c 8.8 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: apropos.c,v 1.17 2002/03/08 20:23:10 jdolecek Exp $");
+__RCSID("$NetBSD: apropos.c,v 1.17.2.1 2002/11/03 19:46:51 he Exp $");
#endif
#endif /* not lint */
@@ -60,7 +60,7 @@
#include <string.h>
#include <unistd.h>
-#include <man/config.h>
+#include <man/manconf.h>
#include <man/pathnames.h>
static int *found, foundman;
@@ -121,9 +121,8 @@
apropos(argv, p_path, 1);
else {
config(conffile);
- ep = (tp = getlist("_whatdb")) == NULL ?
- NULL : TAILQ_FIRST(&tp->list);
- for (; ep != NULL; ep = TAILQ_NEXT(ep, q)) {
+ tp = getlist("_whatdb", 1);
+ TAILQ_FOREACH(ep, &tp->list, q) {
if ((rv = glob(ep->s, GLOB_BRACE | GLOB_NOSORT, NULL,
&pg)) != 0) {
if (rv == GLOB_NOMATCH)
Home |
Main Index |
Thread Index |
Old Index