Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit c73e7f9e authored by deuce's avatar deuce

Add a ::timestr(time32_t *) in addition to the ::timestr(time_t *)

(Whee C++)
parent 0cfe60da
......@@ -305,11 +305,11 @@ public:
char latr; /* Starting attribute of line buffer */
ulong console; /* Defines current Console settings */
char wordwrap[81]; /* Word wrap buffer */
time_t now; /* Used to store current time in Unix format */
time_t now, /* Used to store current time in Unix format */
ns_time; /* File new-scan time */
time32_t answertime, /* Time call was answered */
logontime, /* Time user logged on */
starttime, /* Time stamp to use for time left calcs */
ns_time, /* File new-scan time */
last_ns_time; /* Most recent new-file-scan this call */
uchar action; /* Current action of user */
long online; /* Remote/Local or not online */
......@@ -438,6 +438,7 @@ public:
bool gettimeleft_inside;
/* str.cpp */
char* timestr(time32_t *intime);
char* timestr(time_t *intime);
char timestr_output[60];
void userlist(long mode);
......
......@@ -826,6 +826,12 @@ bool sbbs_t::trashcan(char *insearchof, char *name)
return(result);
}
char* sbbs_t::timestr(time32_t *intime)
{
time_t intime32=*intime;
return(::timestr(&cfg,&intime32,timestr_output));
}
char* sbbs_t::timestr(time_t *intime)
{
return(::timestr(&cfg,intime,timestr_output));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment