From 4f853fd1d337563956c4dadcbea11622fa49abbf Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 29 Oct 2002 09:08:13 +0000
Subject: [PATCH] Added prototypes for long to time_t conversion.

---
 src/sbbs3/execmisc.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/execmisc.cpp b/src/sbbs3/execmisc.cpp
index c7bcbe33e1..f137061bf7 100644
--- a/src/sbbs3/execmisc.cpp
+++ b/src/sbbs3/execmisc.cpp
@@ -518,7 +518,7 @@ int sbbs_t::exec_misc(csi_t* csi, char *path)
 					lp=getintvar(csi,*(long *)csi->ip);
 					csi->ip+=4;
 					if(pp && lp) {
-						tm_p=localtime(lp);
+						tm_p=localtime((time_t *)lp);
 						if(tm_p) {
 							strftime(buf,128,str,tm_p);
 							*pp=copystrvar(csi,*pp,buf); } }
@@ -529,7 +529,7 @@ int sbbs_t::exec_misc(csi_t* csi, char *path)
 					lp=getintvar(csi,*(long *)csi->ip);
 					csi->ip+=4; /* Skip int variable name */
 					if(pp && lp) {
-						strcpy(str,timestr(lp));
+						strcpy(str,timestr((time_t *)lp));
 						*pp=copystrvar(csi,*pp,str); }
 					return(0);
 				case DATE_STR:
-- 
GitLab