From 2a9d46ad206f7cb2f9d6acf0b01445851ea8b215 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 6 Aug 2019 17:46:45 +0200 Subject: cvs update --- src/usr.bin/calendar/io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/usr.bin/calendar/io.c') 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 */ -- cgit 1.4.1