X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flp_json.c;h=10b5927945ec1f4e8d649caba8b9a69eaf4d208d;hb=80c2b1ecf858c7df7a7e447ed4e7e10393be6a17;hp=8b025f78b0dd78b0d79f03eb106e7858c6ff502e;hpb=55ffa21bfedade5cc1702622855277b860f0a7f3;p=ppastats.git diff --git a/src/lp_json.c b/src/lp_json.c index 8b025f7..10b5927 100644 --- a/src/lp_json.c +++ b/src/lp_json.c @@ -23,8 +23,8 @@ #include #include -#include "lp_json.h" -#include "lp_ws.h" +#include +#include #include static time_t json_to_time(json_object *json) @@ -37,7 +37,6 @@ static time_t json_to_time(json_object *json) if (!str) return -1; - memset(&tm, 0, sizeof(struct tm)); tm.tm_isdst = -1; ret = strptime(str, "%FT%T", &tm); @@ -48,7 +47,7 @@ static time_t json_to_time(json_object *json) return -1; } -static json_object *time_to_json(time_t t) +json_object *time_to_json(time_t t) { char *str; json_object *j;