|
@@ -58,8 +58,8 @@ ttail_t *ttail_init(int argc, char **argv)
|
58
|
58
|
res->logfile_sz = 0;
|
59
|
59
|
res->prefix_sz = -1;
|
60
|
60
|
res->session = NULL;
|
61
|
|
- memset(&(res->date_min), 0, sizeof(struct tm));
|
62
|
|
- memset(&(res->date_max), 0, sizeof(struct tm));
|
|
61
|
+ ttail_tm_init(&(res->date_min));
|
|
62
|
+ ttail_tm_init(&(res->date_max));
|
63
|
63
|
|
64
|
64
|
while(1)
|
65
|
65
|
{
|
|
@@ -384,8 +384,7 @@ int ttail_set_dates(ttail_t* res, char* dates[2])
|
384
|
384
|
|
385
|
385
|
for(c=0;c<2;c++)
|
386
|
386
|
{
|
387
|
|
- memset(c==0?&(res->date_min):&(res->date_max), 0, \
|
388
|
|
- sizeof(struct tm));
|
|
387
|
+ ttail_tm_init(c==0?&(res->date_min):&(res->date_max));
|
389
|
388
|
if(!dates[c])
|
390
|
389
|
{
|
391
|
390
|
continue;
|