Source-Changes-HG archive

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

[src/netbsd-1-4]: src/usr.bin/chpass Pull up revision 1.16-1.17 (requested by...



details:   https://anonhg.NetBSD.org/src/rev/bbf6bd9a9bcf
branches:  netbsd-1-4
changeset: 471039:bbf6bd9a9bcf
user:      he <he%NetBSD.org@localhost>
date:      Thu Oct 19 14:33:12 2000 +0000

description:
Pull up revision 1.16-1.17 (requested by itojun):
  Plug warn() call with variable only.

diffstat:

 usr.bin/chpass/pw_yp.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 861db1bbfadd -r bbf6bd9a9bcf usr.bin/chpass/pw_yp.c
--- a/usr.bin/chpass/pw_yp.c    Fri Oct 13 19:04:06 2000 +0000
+++ b/usr.bin/chpass/pw_yp.c    Thu Oct 19 14:33:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pw_yp.c,v 1.14 1998/07/26 21:25:16 mycroft Exp $       */
+/*     $NetBSD: pw_yp.c,v 1.14.2.1 2000/10/19 14:33:12 he Exp $        */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)pw_yp.c    1.0 2/2/93";
 #else
-__RCSID("$NetBSD: pw_yp.c,v 1.14 1998/07/26 21:25:16 mycroft Exp $");
+__RCSID("$NetBSD: pw_yp.c,v 1.14.2.1 2000/10/19 14:33:12 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -317,8 +317,12 @@
        int err, eval;
 {
 
-       if (err)
-               warn(name);
+       if (err) {
+               if (name)
+                       warn("%s", name);
+               else
+                       warn(NULL);
+       }
 
        errx(eval, "YP passwd information unchanged");
 }



Home | Main Index | Thread Index | Old Index