From 50715dd377c7b9796a808a7280079d1386f6132e Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Mon, 30 Oct 2000 02:24:26 +0000
Subject: [PATCH] Eliminated when_t.time cast to time_t warnings.

---
 src/sbbs3/smbutil.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/sbbs3/smbutil.c b/src/sbbs3/smbutil.c
index 259bcd35be..a1558c6342 100644
--- a/src/sbbs3/smbutil.c
+++ b/src/sbbs3/smbutil.c
@@ -52,6 +52,7 @@
 
 /* ANSI */
 #include <time.h>	/* time */
+#include <errno.h>	/* errno */
 
 #include "smblib.h"
 #include "smbwrap.h"
@@ -567,10 +568,10 @@ while(l<count) {
 		break; }
 
 	sprintf(when_written,"%.24s %s"
-		,timestr(&msg.hdr.when_written.time)
+		,timestr((time_t*)&msg.hdr.when_written.time)
 		,zonestr(msg.hdr.when_written.zone));
 	sprintf(when_imported,"%.24s %s"
-		,timestr(&msg.hdr.when_imported.time)
+		,timestr((time_t*)&msg.hdr.when_imported.time)
 		,zonestr(msg.hdr.when_imported.zone));
 
 	printf( "%-20.20s %s\n"
@@ -1245,7 +1246,7 @@ while(!done) {
 				? faddrtoa(*(fidoaddr_t *)msg.from_net.addr)
 					: msg.from_net.addr);
 		printf("\nDate : %.24s %s"
-			,timestr(&msg.hdr.when_written.time)
+			,timestr((time_t*)&msg.hdr.when_written.time)
 			,zonestr(msg.hdr.when_written.zone));
 
 		printf("\n\n");
-- 
GitLab