summaryrefslogtreecommitdiff
path: root/WPRoutines.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-12-03 00:27:57 +0000
committerDave Hibberd <hibby@debian.org>2024-12-03 00:27:57 +0000
commit96c573931d40b6b191614c96299d66ca6217d1d8 (patch)
treef5673406ce7bf25a975179a903f2ca661bcba7b7 /WPRoutines.c
parent697fde312336b04129289ed268043e641ef284cb (diff)
New upstream version 6.0.24.53+repackupstream/6.0.24.53+repack
Diffstat (limited to 'WPRoutines.c')
-rw-r--r--WPRoutines.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/WPRoutines.c b/WPRoutines.c
index 4a065b5..da46799 100644
--- a/WPRoutines.c
+++ b/WPRoutines.c
@@ -1416,7 +1416,7 @@ int CreateWPMessage()
// if (ptr->last_modif > LASTWPSendTime && ptr->Type == 'U' && ptr->first_homebbs[0])
if (ptr->changed && ptr->last_modif > LASTWPSendTime && ptr->first_homebbs[0])
{
- tm = gmtime(&ptr->last_modif);
+ tm = gmtime((time_t *)&ptr->last_modif);
MsgLen += sprintf(Buffptr, "On %02d%02d%02d %s/%c @ %s zip %s %s %s\r\n",
tm->tm_year-100, tm->tm_mon+1, tm->tm_mday,
ptr->callsign, ptr->Type, ptr->first_homebbs,
@@ -1533,8 +1533,8 @@ VOID CreateWPReport()
len = sprintf(Line, "%-7s,%c,%s,%s,%s,%s,%s,%s,%s,%d,%s,%s\r\n",
WP->callsign, WP->Type, WP->first_homebbs, WP->first_qth, WP->first_zip,
WP->secnd_homebbs, WP->secnd_qth, WP->secnd_zip, WP->name, WP->changed,
- FormatWPDate(WP->last_modif),
- FormatWPDate(WP->last_seen));
+ FormatWPDate((time_t)WP->last_modif),
+ FormatWPDate((time_t)WP->last_seen));
fwrite(Line, 1, len, hFile);
}