mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-09-30 10:08:04 +00:00
avoid gcc warning
SCCS-file: zdump.c SCCS-SID: 7.35
This commit is contained in:
committed by
Paul Eggert
parent
18ea3b6381
commit
dad439c677
@@ -389,11 +389,11 @@ register const struct tm * timeptr;
|
||||
register const char * mn;
|
||||
|
||||
if (timeptr->tm_wday < 0 ||
|
||||
timeptr->tm_wday >= sizeof wday_name / sizeof wday_name[0])
|
||||
timeptr->tm_wday >= (int) (sizeof wday_name / sizeof wday_name[0]))
|
||||
wn = "???";
|
||||
else wn = wday_name[timeptr->tm_wday];
|
||||
if (timeptr->tm_mon < 0 ||
|
||||
timeptr->tm_mon >= sizeof mon_name / sizeof mon_name[0])
|
||||
timeptr->tm_mon >= (int) (sizeof mon_name / sizeof mon_name[0]))
|
||||
mn = "???";
|
||||
else mn = mon_name[timeptr->tm_mon];
|
||||
(void) printf("%.3s %.3s%3d %.2d:%.2d:%.2d %ld",
|
||||
|
||||
Reference in New Issue
Block a user