Source-Changes-HG archive

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

[src/trunk]: src/lib/libutil remove diagnostic check for name==NULL; it's ok ...



details:   https://anonhg.NetBSD.org/src/rev/8ce19602aecb
branches:  trunk
changeset: 476470:8ce19602aecb
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Sep 17 01:28:12 1999 +0000

description:
remove diagnostic check for name==NULL; it's ok to call pw_error() in this case

diffstat:

 lib/libutil/passwd.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r 24f182c8631d -r 8ce19602aecb lib/libutil/passwd.c
--- a/lib/libutil/passwd.c      Fri Sep 17 01:23:00 1999 +0000
+++ b/lib/libutil/passwd.c      Fri Sep 17 01:28:12 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: passwd.c,v 1.16 1999/09/16 11:45:51 lukem Exp $        */
+/*     $NetBSD: passwd.c,v 1.17 1999/09/17 01:28:12 lukem Exp $        */
 
 /*
  * Copyright (c) 1987, 1993, 1994, 1995
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: passwd.c,v 1.16 1999/09/16 11:45:51 lukem Exp $");
+__RCSID("$NetBSD: passwd.c,v 1.17 1999/09/17 01:28:12 lukem Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -353,12 +353,6 @@
        int err, eval;
 {
 
-       _DIAGASSERT(name != NULL);
-#ifdef _DIAGNOSTIC
-       if (name == NULL)
-               name = "ERROR: pw_error() called with name == NULL";
-#endif
-
        if (err)
                warn(name);
 



Home | Main Index | Thread Index | Old Index