summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed/process.c
diff options
context:
space:
mode:
authorjsyn <jsyn@openbsd.org>2002-06-11 06:16:36 +0000
committerjsyn <jsyn@openbsd.org>2002-06-11 06:16:36 +0000
commitc20d9ad407c19e76b866bffb8304aa598c583016 (patch)
treef55dc0d98b5fe748f9e7a6bd9afc5432a51d5abf /usr.bin/sed/process.c
parentAdd -N and -R options. When used in conjunction with (diff)
downloadwireguard-openbsd-c20d9ad407c19e76b866bffb8304aa598c583016.tar.xz
wireguard-openbsd-c20d9ad407c19e76b866bffb8304aa598c583016.zip
kill err(3) newlines; ok miod@, deraadt@
Diffstat (limited to 'usr.bin/sed/process.c')
-rw-r--r--usr.bin/sed/process.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c
index af12c21ac8c..4cdbf0cefef 100644
--- a/usr.bin/sed/process.c
+++ b/usr.bin/sed/process.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process.c,v 1.8 2002/04/15 21:47:45 millert Exp $ */
+/* $OpenBSD: process.c,v 1.9 2002/06/11 06:16:36 jsyn Exp $ */
/*-
* Copyright (c) 1992 Diomidis Spinellis.
@@ -39,7 +39,7 @@
#ifndef lint
/* from: static char sccsid[] = "@(#)process.c 8.1 (Berkeley) 6/6/93"; */
-static char *rcsid = "$OpenBSD: process.c,v 1.8 2002/04/15 21:47:45 millert Exp $";
+static char *rcsid = "$OpenBSD: process.c,v 1.9 2002/06/11 06:16:36 jsyn Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -227,10 +227,10 @@ redirect:
if (cp->u.fd == -1 && (cp->u.fd = open(cp->t,
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
DEFFILEMODE)) == -1)
- err(FATAL, "%s: %s\n",
+ err(FATAL, "%s: %s",
cp->t, strerror(errno));
if (write(cp->u.fd, ps, psl) != psl)
- err(FATAL, "%s: %s\n",
+ err(FATAL, "%s: %s",
cp->t, strerror(errno));
break;
case 'x':
@@ -414,9 +414,9 @@ substitute(cp)
if (cp->u.s->wfile && !pd) {
if (cp->u.s->wfd == -1 && (cp->u.s->wfd = open(cp->u.s->wfile,
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, DEFFILEMODE)) == -1)
- err(FATAL, "%s: %s\n", cp->u.s->wfile, strerror(errno));
+ err(FATAL, "%s: %s", cp->u.s->wfile, strerror(errno));
if (write(cp->u.s->wfd, ps, psl) != psl)
- err(FATAL, "%s: %s\n", cp->u.s->wfile, strerror(errno));
+ err(FATAL, "%s: %s", cp->u.s->wfile, strerror(errno));
}
return (1);
}