summaryrefslogtreecommitdiff
path: root/usr.bin/write
diff options
context:
space:
mode:
authordrochner <drochner@NetBSD.org>1999-11-09 15:06:30 +0000
committerdrochner <drochner@NetBSD.org>1999-11-09 15:06:30 +0000
commit85cbf55d16cddafeebefce77710e3a2926d08556 (patch)
treeda439b4e237cb90d0984b7acd7e8f08b666fe472 /usr.bin/write
parentc7cca9cd3922a0b966c323335715342188a00b94 (diff)
Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al. Closes PR bin/7592 by cgd.
Diffstat (limited to 'usr.bin/write')
-rw-r--r--usr.bin/write/write.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/write/write.c b/usr.bin/write/write.c
index 615e2f4a726..b1fe1367983 100644
--- a/usr.bin/write/write.c
+++ b/usr.bin/write/write.c
@@ -1,4 +1,4 @@
-/* $NetBSD: write.c,v 1.15 1998/12/20 15:04:40 christos Exp $ */
+/* $NetBSD: write.c,v 1.16 1999/11/09 15:06:37 drochner Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
#if 0
static char sccsid[] = "@(#)write.c 8.2 (Berkeley) 4/27/95";
#else
-__RCSID("$NetBSD: write.c,v 1.15 1998/12/20 15:04:40 christos Exp $");
+__RCSID("$NetBSD: write.c,v 1.16 1999/11/09 15:06:37 drochner Exp $");
#endif
#endif /* not lint */
@@ -329,6 +329,6 @@ wr_fputs(s)
}
return;
-err: err(1, "%s", "");
+err: err(1, NULL);
#undef PUTC
}