diff options
author | Leah Neukirchen <leah@vuxu.org> | 2019-08-06 17:46:45 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2019-08-06 17:46:45 +0200 |
commit | 2a9d46ad206f7cb2f9d6acf0b01445851ea8b215 (patch) | |
tree | 92b8181aada61dc39d64f448cf0f08f551024d4e /src/usr.bin/calendar/io.c | |
parent | 3a7302d2c68412db76c46df62a5c0f2e10626cb9 (diff) | |
download | outils-2a9d46ad206f7cb2f9d6acf0b01445851ea8b215.tar.gz outils-2a9d46ad206f7cb2f9d6acf0b01445851ea8b215.tar.xz outils-2a9d46ad206f7cb2f9d6acf0b01445851ea8b215.zip |
cvs update
Diffstat (limited to 'src/usr.bin/calendar/io.c')
-rw-r--r-- | src/usr.bin/calendar/io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr.bin/calendar/io.c b/src/usr.bin/calendar/io.c index 3a58850..d062568 100644 --- a/src/usr.bin/calendar/io.c +++ b/src/usr.bin/calendar/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.48 2019/01/29 22:28:30 tedu Exp $ */ +/* $OpenBSD: io.c,v 1.49 2019/06/28 13:35:00 deraadt Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -331,7 +331,7 @@ opencal(void) } } - if (pipe(pdes) < 0) { + if (pipe(pdes) == -1) { close(fdin); return (NULL); } @@ -393,7 +393,7 @@ closecal(FILE *fp) (void)rewind(fp); if (fstat(fileno(fp), &sbuf) || !sbuf.st_size) goto done; - if (pipe(pdes) < 0) + if (pipe(pdes) == -1) goto done; switch ((pid = vfork())) { case -1: /* error */ |