summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffreg.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2003-06-25 07:26:59 +0000
committertedu <tedu@openbsd.org>2003-06-25 07:26:59 +0000
commit7d9f164d59ea99e32efd21a1656a60f42f563c87 (patch)
treecdfc2f7d3247310d380457309b3a92831d80bb20 /usr.bin/diff/diffreg.c
parentknf (diff)
downloadwireguard-openbsd-7d9f164d59ea99e32efd21a1656a60f42f563c87.tar.xz
wireguard-openbsd-7d9f164d59ea99e32efd21a1656a60f42f563c87.zip
remove silly signal catcher, and just use done. ok deraadt@
Diffstat (limited to 'usr.bin/diff/diffreg.c')
-rw-r--r--usr.bin/diff/diffreg.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c
index b1076b26da1..332033afead 100644
--- a/usr.bin/diff/diffreg.c
+++ b/usr.bin/diff/diffreg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diffreg.c,v 1.13 2003/06/25 03:55:45 deraadt Exp $ */
+/* $OpenBSD: diffreg.c,v 1.14 2003/06/25 07:26:59 tedu Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -354,10 +354,10 @@ copytemp(void)
char buf[BUFSIZ];
int i, f;
- signal(SIGHUP, catchsig);
- signal(SIGINT, catchsig);
- signal(SIGPIPE, catchsig);
- signal(SIGTERM, catchsig);
+ signal(SIGHUP, done);
+ signal(SIGINT, done);
+ signal(SIGPIPE, done);
+ signal(SIGTERM, done);
f = mkstemp(tempfile);
if (f < 0) {
fprintf(stderr, "diff: ");
@@ -921,8 +921,7 @@ fetch(long *f, int a, int b, FILE *lb, char *s, int oldfile)
if (c == '\t' && tflag)
do
putchar(' ');
- while (++col & 7)
- ;
+ while (++col & 7);
else {
putchar(c);
col++;