X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flp_json.c;h=0643a1b3c52eb5454d5587aef6a0491ca3033f4a;hb=f534061fc8230481a3ca40abc1d1e9b79d3c4976;hp=c3345fdbdee17b8a92869a3e8ce9c45c84fa94f9;hpb=497e16d17e06f1f303de8f10398353b0821f9c1e;p=ppastats.git diff --git a/src/lp_json.c b/src/lp_json.c index c3345fd..0643a1b 100644 --- a/src/lp_json.c +++ b/src/lp_json.c @@ -25,6 +25,7 @@ #include "lp_json.h" #include "lp_ws.h" +#include static time_t json_to_time(json_object *json) { @@ -51,7 +52,7 @@ static json_object *time_to_json(time_t t) { char *str; - str = time_to_str(t); + str = time_to_str(&t); if (str) return json_object_new_string(str);