X-Git-Url: https://git.tokkee.org/?p=collection4.git;a=blobdiff_plain;f=src%2Faction_show_instance.c;h=0d5420aa132683dbe12eae51cfbc9c0acd658b5c;hp=92bbf1cb10991ca2d4db6f36d4d6241f00292ca3;hb=39d3a136ce18b3436df829c07571c7c19763975a;hpb=66522621f31491eb4ad6ec07d048af402a635678 diff --git a/src/action_show_instance.c b/src/action_show_instance.c index 92bbf1c..0d5420a 100644 --- a/src/action_show_instance.c +++ b/src/action_show_instance.c @@ -186,7 +186,7 @@ static int left_menu (void *user_data) /* {{{ */ static int show_instance_json (graph_config_t *cfg, /* {{{ */ graph_instance_t *inst, - time_t begin, time_t end, int index) + long begin, long end, int index) { yajl_gen_config handler_config; yajl_gen handler; @@ -239,12 +239,12 @@ static int show_instance_json (graph_config_t *cfg, /* {{{ */ yajl_gen_string (handler, (unsigned char *) "begin", (unsigned int) strlen ("begin")); - yajl_gen_integer (handler, (long int) begin); + yajl_gen_integer (handler, begin); yajl_gen_string (handler, (unsigned char *) "end", (unsigned int) strlen ("end")); - yajl_gen_integer (handler, (long int) end); + yajl_gen_integer (handler, end); yajl_gen_map_close (handler);