Skip to content
Snippets Groups Projects
Commit 50715dd3 authored by rswindell's avatar rswindell
Browse files

Eliminated when_t.time cast to time_t warnings.

parent 6d1d9e1e
Branches
Tags
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment