Switch to unified view

a/src/utils/debuglog.cpp b/src/utils/debuglog.cpp
...
...
209
209
210
#include <time.h>
210
#include <time.h>
211
static void datestring(char *d, int sz)
211
static void datestring(char *d, int sz)
212
{
212
{
213
    struct tm *tmp;
213
    struct tm *tmp;
214
    time_t tim = time((time_t)0);
214
    time_t tim = time((time_t*)0);
215
    tmp = localtime(&tim);
215
    tmp = localtime(&tim);
216
    int year = tmp->tm_year % 100;
216
    int year = tmp->tm_year % 100;
217
    snprintf(d, sz, "%02d%02d%02d%02d%02d%02d", year, tmp->tm_mon+1,
217
    snprintf(d, sz, "%02d%02d%02d%02d%02d%02d", year, tmp->tm_mon+1,
218
        tmp->tm_mday, tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
218
        tmp->tm_mday, tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
219
}
219
}