Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/stdio remove diag assert - the compiler demands fp ...



details:   https://anonhg.NetBSD.org/src/rev/9e084ba3b023
branches:  trunk
changeset: 996200:9e084ba3b023
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jan 23 00:05:47 2019 +0000

description:
remove diag assert - the compiler demands fp is non NULL now.

diffstat:

 lib/libc/stdio/fprintf.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r f3771995d3c5 -r 9e084ba3b023 lib/libc/stdio/fprintf.c
--- a/lib/libc/stdio/fprintf.c  Tue Jan 22 23:55:54 2019 +0000
+++ b/lib/libc/stdio/fprintf.c  Wed Jan 23 00:05:47 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fprintf.c,v 1.14 2018/02/04 01:13:45 mrg Exp $ */
+/*     $NetBSD: fprintf.c,v 1.15 2019/01/23 00:05:47 mrg Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)fprintf.c  8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: fprintf.c,v 1.14 2018/02/04 01:13:45 mrg Exp $");
+__RCSID("$NetBSD: fprintf.c,v 1.15 2019/01/23 00:05:47 mrg Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -53,8 +53,6 @@
        int ret;
        va_list ap;
 
-       _DIAGASSERT(fp != NULL);
-
        va_start(ap, fmt);
        ret = vfprintf(fp, fmt, ap);
        va_end(ap);



Home | Main Index | Thread Index | Old Index