Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/chpass Make this compiles again when compiled withou...



details:   https://anonhg.NetBSD.org/src/rev/ea3b6c1ff4f0
branches:  trunk
changeset: 535347:ea3b6c1ff4f0
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Aug 16 01:06:28 2002 +0000

description:
Make this compiles again when compiled without YP.
>From Makoto Fujiwara in private mail.

diffstat:

 usr.bin/chpass/chpass.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 606bfc6da421 -r ea3b6c1ff4f0 usr.bin/chpass/chpass.c
--- a/usr.bin/chpass/chpass.c   Fri Aug 16 00:47:39 2002 +0000
+++ b/usr.bin/chpass/chpass.c   Fri Aug 16 01:06:28 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chpass.c,v 1.25 2002/08/08 04:49:26 enami Exp $        */
+/*     $NetBSD: chpass.c,v 1.26 2002/08/16 01:06:28 enami Exp $        */
 
 /*-
  * Copyright (c) 1988, 1993, 1994
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)chpass.c   8.4 (Berkeley) 4/2/94";
 #else 
-__RCSID("$NetBSD: chpass.c,v 1.25 2002/08/08 04:49:26 enami Exp $");
+__RCSID("$NetBSD: chpass.c,v 1.26 2002/08/16 01:06:28 enami Exp $");
 #endif
 #endif /* not lint */
 
@@ -88,7 +88,10 @@
 {
        enum { NEWSH, LOADENTRY, EDITENTRY } op;
        struct passwd *pw, lpw, old_pw;
-       int ch, dfd, pfd, tfd, yflag;
+       int ch, dfd, pfd, tfd;
+#ifdef YP
+       int yflag;
+#endif
        char *arg, *username = NULL;
 
 #ifdef __GNUC__



Home | Main Index | Thread Index | Old Index