diff options
Diffstat (limited to 'src/usr.bin/calendar/calendar.h')
-rw-r--r-- | src/usr.bin/calendar/calendar.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/usr.bin/calendar/calendar.h b/src/usr.bin/calendar/calendar.h index b54d0b2..ac33b0d 100644 --- a/src/usr.bin/calendar/calendar.h +++ b/src/usr.bin/calendar/calendar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: calendar.h,v 1.14 2015/03/15 00:41:28 millert Exp $ */ +/* $OpenBSD: calendar.h,v 1.15 2015/12/07 18:46:35 espie Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -34,6 +34,7 @@ extern struct passwd *pw; extern int doall; +extern int daynames; extern int bodun_always; extern time_t f_time; extern struct tm *tp; @@ -46,9 +47,11 @@ struct fixs { int len; }; +#define PRINT_DATE_BASE_LEN 35 + struct event { time_t when; - char print_date[31]; + char print_date[PRINT_DATE_BASE_LEN+1]; char **desc; char *ldesc; struct event *next; @@ -56,7 +59,7 @@ struct event { struct match { time_t when; - char print_date[30]; + char print_date[PRINT_DATE_BASE_LEN]; int bodun; int var; struct match *next; |