Skip to content
Snippets Groups Projects
Commit 4f853fd1 authored by rswindell's avatar rswindell
Browse files

Added prototypes for long to time_t conversion.

parent 5b540dcf
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment