json output: remove useless, empty fields

Reviewed-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Gilles Bouthenot <gilles.bouthenot@univ-fcomte.fr>
This commit is contained in:
Gilles Bouthenot 2012-12-05 12:47:08 +01:00 committed by Sami Kerola
parent 48a23c94e5
commit e9d196e816

View file

@ -384,11 +384,8 @@ int output_json(void)
fprintf(outfile, "\"location\":\"\", ");
}
fprintf(outfile, "\"network\":\"\", ");
fprintf(outfile, "\"netmask\":\"\", ");
fprintf(outfile, "\"range\":\"%s\", ",
ntop_ipaddr(&range_p->first_ip));
fprintf(outfile, "\"gateway\":\"\", ");
fprintf(outfile, "\"defined\":%lu, ", range_size);
fprintf(outfile, "\"used\":%lu, ", range_p->count);
fprintf(outfile, "\"free\":%lu ",