Module Name: src Committed By: christos Date: Wed Jul 7 21:24:34 UTC 2010
Modified Files: src/usr.bin/man: man.c Log Message: get the value of the entry for the class not the key. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/usr.bin/man/man.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/man/man.c diff -u src/usr.bin/man/man.c:1.40 src/usr.bin/man/man.c:1.41 --- src/usr.bin/man/man.c:1.40 Sun May 23 18:04:36 2010 +++ src/usr.bin/man/man.c Wed Jul 7 17:24:34 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: man.c,v 1.40 2010/05/23 22:04:36 christos Exp $ */ +/* $NetBSD: man.c,v 1.41 2010/07/07 21:24:34 christos Exp $ */ /* * Copyright (c) 1987, 1993, 1994, 1995 @@ -40,7 +40,7 @@ #if 0 static char sccsid[] = "@(#)man.c 8.17 (Berkeley) 1/31/95"; #else -__RCSID("$NetBSD: man.c,v 1.40 2010/05/23 22:04:36 christos Exp $"); +__RCSID("$NetBSD: man.c,v 1.41 2010/07/07 21:24:34 christos Exp $"); #endif #endif /* not lint */ @@ -956,7 +956,8 @@ TAG *t; snprintf(buf, sizeof(buf), "_%s", machine); t = gettag(buf, 0); - return t != NULL && t->s ? t->s : NULL; + return t != NULL && !TAILQ_EMPTY(&t->entrylist) ? + TAILQ_FIRST(&t->entrylist)->s : NULL; } static void