Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/deskutils/calendar/files/patch-io.c
18157 views
1
--- io.c.orig 2020-11-07 11:15:40 UTC
2
+++ io.c
3
@@ -119,8 +119,6 @@ cal_fopen(const char *file)
4
FILE *fp;
5
char *home = getenv("HOME");
6
unsigned int i;
7
- struct stat sb;
8
- static bool warned = false;
9
10
if (home == NULL || *home == '\0') {
11
warnx("Cannot get home directory");
12
@@ -145,10 +143,6 @@ cal_fopen(const char *file)
13
}
14
15
warnx("can't open calendar file \"%s\"", file);
16
- if (!warned && stat(_PATH_INCLUDE_LOCAL, &sb) != 0) {
17
- warnx("calendar data files now provided by calendar-data pkg.");
18
- warned = true;
19
- }
20
21
return (NULL);
22
}
23
24