summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorOmar Polo <op@cvs.openbsd.org>2023-05-10 08:02:11 +0000
committerOmar Polo <op@cvs.openbsd.org>2023-05-10 08:02:11 +0000
commit199d4f4c3bc12af8eb70daa6e1702d03c4ff63a8 (patch)
tree004ea962505a78e0e7a448a5973d5dffa0c3a52d /usr.sbin/smtpd
parent0628360d028469bc680b87fe0d7df984b734d614 (diff)
constify day, month and tz
spotted while diffing with -portable, where tz is marked as const. ok tb@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/to.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/to.c b/usr.sbin/smtpd/to.c
index 6e340ccde1a..4a5c692e950 100644
--- a/usr.sbin/smtpd/to.c
+++ b/usr.sbin/smtpd/to.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: to.c,v 1.48 2021/06/14 17:58:16 eric Exp $ */
+/* $OpenBSD: to.c,v 1.49 2023/05/10 08:02:10 op Exp $ */
/*
* Copyright (c) 2009 Jacek Masiulaniec <jacekm@dobremiasto.net>
@@ -140,10 +140,10 @@ time_to_text(time_t when)
{
struct tm *lt;
static char buf[40];
- char *day[] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
- char *month[] = {"Jan","Feb","Mar","Apr","May","Jun",
+ const char *day[] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
+ const char *month[] = {"Jan","Feb","Mar","Apr","May","Jun",
"Jul","Aug","Sep","Oct","Nov","Dec"};
- char *tz;
+ const char *tz;
long offset;
lt = localtime(&when);