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/whatis Pull up revisions 1.14-1.16 (requested b...



details:   https://anonhg.NetBSD.org/src/rev/6d8a255a03ac
branches:  netbsd-1-6
changeset: 529276:6d8a255a03ac
user:      he <he%NetBSD.org@localhost>
date:      Sun Nov 03 19:46:00 2002 +0000

description:
Pull up revisions 1.14-1.16 (requested by he in ticket #787):
  Make these compile again, after the changes in ticket #787.

diffstat:

 usr.bin/whatis/whatis.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (39 lines):

diff -r d3a12878c748 -r 6d8a255a03ac usr.bin/whatis/whatis.c
--- a/usr.bin/whatis/whatis.c   Sun Nov 03 19:45:30 2002 +0000
+++ b/usr.bin/whatis/whatis.c   Sun Nov 03 19:46:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: whatis.c,v 1.13 2002/03/08 20:23:11 jdolecek Exp $     */
+/*     $NetBSD: whatis.c,v 1.13.2.1 2002/11/03 19:46:00 he Exp $       */
 
 /*
  * Copyright (c) 1987, 1993
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)whatis.c   8.5 (Berkeley) 1/2/94";
 #else
-__RCSID("$NetBSD: whatis.c,v 1.13 2002/03/08 20:23:11 jdolecek Exp $");
+__RCSID("$NetBSD: whatis.c,v 1.13.2.1 2002/11/03 19:46:00 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -59,7 +59,7 @@
 #include <string.h>
 #include <unistd.h>
 
-#include <man/config.h>
+#include <man/manconf.h>
 #include <man/pathnames.h>
 
 #define        MAXLINELEN      8192                    /* max line handled */
@@ -121,9 +121,8 @@
                whatis(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", 0);
+               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