summaryrefslogtreecommitdiff
path: root/WPRoutines.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-12-03 00:27:59 +0000
committerDave Hibberd <hibby@debian.org>2024-12-03 00:27:59 +0000
commit745a9f8e880f8b9541bca2288e68b7f8d346d58d (patch)
tree26d9f876a470d2f41d3a39403724cd2dc3ccfa02 /WPRoutines.c
parentdd84b546a055a33657f094c2ef6d36a321a545ff (diff)
parent96c573931d40b6b191614c96299d66ca6217d1d8 (diff)
Update upstream source from tag 'upstream/6.0.24.53+repack'
Update to upstream version '6.0.24.53+repack' with Debian dir 64961bc210cd2b4237f556f2eada2c03ed86fd0f
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);
}