Module Name: src
Committed By: christos
Date: Mon Sep 19 18:48:30 UTC 2022
Modified Files:
src/usr.bin/calendar: calendar.c pathnames.h
Log Message:
use tradcpp
To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/usr.bin/calendar/calendar.c
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/calendar/pathnames.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/calendar/calendar.c
diff -u src/usr.bin/calendar/calendar.c:1.53 src/usr.bin/calendar/calendar.c:1.54
--- src/usr.bin/calendar/calendar.c:1.53 Thu Jun 2 22:06:40 2016
+++ src/usr.bin/calendar/calendar.c Mon Sep 19 14:48:30 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: calendar.c,v 1.53 2016/06/03 02:06:40 agc Exp $ */
+/* $NetBSD: calendar.c,v 1.54 2022/09/19 18:48:30 christos Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19
#if 0
static char sccsid[] = "@(#)calendar.c 8.4 (Berkeley) 1/7/95";
#endif
-__RCSID("$NetBSD: calendar.c,v 1.53 2016/06/03 02:06:40 agc Exp $");
+__RCSID("$NetBSD: calendar.c,v 1.54 2022/09/19 18:48:30 christos Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -459,7 +459,7 @@ opencal(FILE **in)
err(EXIT_FAILURE, "Cannot restrict cpp");
cpp_restricted = true;
- (void)execl(_PATH_CPP, "cpp", "-traditional", "-P", "-I.",
+ (void)execl(_PATH_CPP, "tradcpp", "-nostdinc", "-I.",
"-I" _PATH_CALENDARS, NULL);
err(EXIT_FAILURE, "Cannot exec `%s'", _PATH_CPP);
/*NOTREACHED*/
Index: src/usr.bin/calendar/pathnames.h
diff -u src/usr.bin/calendar/pathnames.h:1.6 src/usr.bin/calendar/pathnames.h:1.7
--- src/usr.bin/calendar/pathnames.h:1.6 Tue Dec 7 11:47:32 2004
+++ src/usr.bin/calendar/pathnames.h Mon Sep 19 14:48:30 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: pathnames.h,v 1.6 2004/12/07 16:47:32 jwise Exp $ */
+/* $NetBSD: pathnames.h,v 1.7 2022/09/19 18:48:30 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -33,6 +33,6 @@
#include <paths.h>
-#define _PATH_CPP "/usr/bin/cpp"
+#define _PATH_CPP "/usr/bin/tradcpp"
#define _PATH_CALENDARS "/usr/share/calendar"
#define _PATH_SYSTEM_CALENDAR "/etc/calendar"