mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 16:26:59 +00:00
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:
parent
48a23c94e5
commit
e9d196e816
1 changed files with 0 additions and 3 deletions
|
|
@ -384,11 +384,8 @@ int output_json(void)
|
||||||
fprintf(outfile, "\"location\":\"\", ");
|
fprintf(outfile, "\"location\":\"\", ");
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(outfile, "\"network\":\"\", ");
|
|
||||||
fprintf(outfile, "\"netmask\":\"\", ");
|
|
||||||
fprintf(outfile, "\"range\":\"%s\", ",
|
fprintf(outfile, "\"range\":\"%s\", ",
|
||||||
ntop_ipaddr(&range_p->first_ip));
|
ntop_ipaddr(&range_p->first_ip));
|
||||||
fprintf(outfile, "\"gateway\":\"\", ");
|
|
||||||
fprintf(outfile, "\"defined\":%lu, ", range_size);
|
fprintf(outfile, "\"defined\":%lu, ", range_size);
|
||||||
fprintf(outfile, "\"used\":%lu, ", range_p->count);
|
fprintf(outfile, "\"used\":%lu, ", range_p->count);
|
||||||
fprintf(outfile, "\"free\":%lu ",
|
fprintf(outfile, "\"free\":%lu ",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue