=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/man/Attic/man.c,v retrieving revision 1.8 retrieving revision 1.9 diff -c -r1.8 -r1.9 *** src/usr.bin/man/Attic/man.c 1998/04/25 00:25:37 1.8 --- src/usr.bin/man/Attic/man.c 1998/07/01 11:23:40 1.9 *************** *** 1,4 **** ! /* $OpenBSD: man.c,v 1.8 1998/04/25 00:25:37 millert Exp $ */ /* $NetBSD: man.c,v 1.7 1995/09/28 06:05:34 tls Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: man.c,v 1.9 1998/07/01 11:23:40 espie Exp $ */ /* $NetBSD: man.c,v 1.7 1995/09/28 06:05:34 tls Exp $ */ /* *************** *** 44,50 **** #if 0 static char sccsid[] = "@(#)man.c 8.17 (Berkeley) 1/31/95"; #else ! static char rcsid[] = "$OpenBSD: man.c,v 1.8 1998/04/25 00:25:37 millert Exp $"; #endif #endif /* not lint */ --- 44,50 ---- #if 0 static char sccsid[] = "@(#)man.c 8.17 (Berkeley) 1/31/95"; #else ! static char rcsid[] = "$OpenBSD: man.c,v 1.9 1998/07/01 11:23:40 espie Exp $"; #endif #endif /* not lint */ *************** *** 67,72 **** --- 67,73 ---- #include "pathnames.h" int f_all, f_where; + static TAG *section; /* could be passed to cleanup() instead */ extern char *__progname; *************** *** 87,93 **** { extern char *optarg; extern int optind; ! TAG *defp, *defnewp, *section, *sectnewp, *subp; ENTRY *e_defp, *e_sectp, *e_subp, *ep; glob_t pg; size_t len; --- 88,94 ---- { extern char *optarg; extern int optind; ! TAG *defp, *defnewp, *sectnewp, *subp; ENTRY *e_defp, *e_sectp, *e_subp, *ep; glob_t pg; size_t len; *************** *** 741,747 **** NULL : missp->list.tqh_first; if (ep != NULL) for (; ep != NULL; ep = ep->q.tqe_next) { ! warnx("no entry for %s in the manual.", ep->s); rval = 1; } --- 742,752 ---- NULL : missp->list.tqh_first; if (ep != NULL) for (; ep != NULL; ep = ep->q.tqe_next) { ! if (section) ! warnx("no entry for %s in section %s of the manual.", ! ep->s, section->s); ! else ! warnx("no entry for %s in the manual.", ep->s); rval = 1; }