Unconditionalize `rval' declaration referenced in usr.bin/chpass/ via .PATH

This commit is contained in:
ross 1999-04-27 06:08:58 +00:00
parent ce5ede558e
commit c36a5f5190
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: getpwent.c,v 1.43 1999/04/26 04:01:32 lukem Exp $ */
/* $NetBSD: getpwent.c,v 1.44 1999/04/27 06:08:58 ross Exp $ */
/*
* Copyright (c) 1988, 1993
@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)getpwent.c 8.2 (Berkeley) 4/27/95";
#else
__RCSID("$NetBSD: getpwent.c,v 1.43 1999/04/26 04:01:32 lukem Exp $");
__RCSID("$NetBSD: getpwent.c,v 1.44 1999/04/27 06:08:58 ross Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -734,11 +734,12 @@ _compat_getpwent(rv, cb_data, ap)
va_list ap;
{
DBT key;
int rval;
char bf[sizeof(_pw_keynum) + 1];
#ifdef _PASSWD_COMPAT
static char *name = NULL;
const char *user, *host, *dom;
int has_compatpw, rval;
int has_compatpw;
#endif
if (!_pw_db && !__initdb())