From 973ae30e7c4f7a1afb385dd3d8eeea178f981445 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Mon, 8 Jul 2024 13:24:39 +0200 Subject: fix deprecated prototypes --- src/myctime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/myctime.c') diff --git a/src/myctime.c b/src/myctime.c index ebb01ba..69d7004 100644 --- a/src/myctime.c +++ b/src/myctime.c @@ -4,8 +4,8 @@ #include "datetime.h" -static char *daytab[7] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; -static char *montab[12] = { +static const char *daytab[7] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; +static const char *montab[12] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}; static char result[30]; -- cgit v1.2.3