Module Name: src
Committed By: mrg
Date: Wed Jan 23 00:05:47 UTC 2019
Modified Files:
src/lib/libc/stdio: fprintf.c
Log Message:
remove diag assert - the compiler demands fp is non NULL now.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/stdio/fprintf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/stdio/fprintf.c
diff -u src/lib/libc/stdio/fprintf.c:1.14 src/lib/libc/stdio/fprintf.c:1.15
--- src/lib/libc/stdio/fprintf.c:1.14 Sun Feb 4 01:13:45 2018
+++ src/lib/libc/stdio/fprintf.c Wed Jan 23 00:05:47 2019
@@ -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 @@ fprintf(FILE *fp, const char *fmt, ...)
int ret;
va_list ap;
- _DIAGASSERT(fp != NULL);
-
va_start(ap, fmt);
ret = vfprintf(fp, fmt, ap);
va_end(ap);