about summary refs log tree commit diff
path: root/src/usr.bin/calendar
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-03-26 15:47:54 +0100
committerLeah Neukirchen <leah@vuxu.org>2022-03-26 15:47:54 +0100
commitbf282342a7d15a1f33eb137c3febd3f93c2b14f0 (patch)
treef124d15e305d526f605c2a0e155152ca089d1d37 /src/usr.bin/calendar
parentad03f8de9c5b50f4877e3a0c2ed8ac3e13ac0059 (diff)
downloadoutils-bf282342a7d15a1f33eb137c3febd3f93c2b14f0.tar.gz
outils-bf282342a7d15a1f33eb137c3febd3f93c2b14f0.tar.xz
outils-bf282342a7d15a1f33eb137c3febd3f93c2b14f0.zip
cvs update
Diffstat (limited to 'src/usr.bin/calendar')
-rw-r--r--src/usr.bin/calendar/io.c6
-rw-r--r--src/usr.bin/calendar/pathnames.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/usr.bin/calendar/io.c b/src/usr.bin/calendar/io.c
index d062568..41bc786 100644
--- a/src/usr.bin/calendar/io.c
+++ b/src/usr.bin/calendar/io.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: io.c,v 1.49 2019/06/28 13:35:00 deraadt Exp $	*/
+/*	$OpenBSD: io.c,v 1.51 2021/12/07 14:00:33 robert Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -355,14 +355,14 @@ opencal(void)
 		 */
 		if (doall) {
 			int fderr;
-			fderr = open(_PATH_DEVNULL, O_WRONLY, 0);
+			fderr = open(_PATH_DEVNULL, O_WRONLY);
 			if (fderr == -1)
 				_exit(0);
 			(void)dup2(fderr, STDERR_FILENO);
 			(void)close(fderr);
 		}
 		execl(_PATH_CPP, "cpp", "-traditional", "-undef", "-U__GNUC__",
-		    "-P", "-I.", _PATH_INCLUDE, (char *)NULL);
+		    "-P", "-I.", "-w", _PATH_INCLUDE, (char *)NULL);
 		warn(_PATH_CPP);
 		_exit(1);
 	}
diff --git a/src/usr.bin/calendar/pathnames.h b/src/usr.bin/calendar/pathnames.h
index 60fe31c..fe7684b 100644
--- a/src/usr.bin/calendar/pathnames.h
+++ b/src/usr.bin/calendar/pathnames.h
@@ -1,4 +1,4 @@
-/*	$OpenBSD: pathnames.h,v 1.5 2014/07/30 16:46:17 jsg Exp $	*/
+/*	$OpenBSD: pathnames.h,v 1.6 2021/12/07 14:00:33 robert Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993