From e9d196e81623fac2e5bccb08e045474beb3234bd Mon Sep 17 00:00:00 2001 From: Gilles Bouthenot Date: Wed, 5 Dec 2012 12:47:08 +0100 Subject: [PATCH] json output: remove useless, empty fields Reviewed-by: Sami Kerola Signed-off-by: Gilles Bouthenot --- src/output.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/output.c b/src/output.c index 0f2329f..eb99454 100644 --- a/src/output.c +++ b/src/output.c @@ -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 ",