mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +00:00
output: remove empty element from xml
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
735c5db817
commit
73b357484d
1 changed files with 0 additions and 4 deletions
|
|
@ -264,12 +264,8 @@ int output_xml(void)
|
||||||
} else {
|
} else {
|
||||||
fprintf(outfile, "\t<location></location>\n");
|
fprintf(outfile, "\t<location></location>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(outfile, "\t<network></network>\n");
|
|
||||||
fprintf(outfile, "\t<netmask></netmask>\n");
|
|
||||||
fprintf(outfile, "\t<range>%s ", ntop_ipaddr(&range_p->first_ip));
|
fprintf(outfile, "\t<range>%s ", ntop_ipaddr(&range_p->first_ip));
|
||||||
fprintf(outfile, "- %s</range>\n", ntop_ipaddr(&range_p->last_ip));
|
fprintf(outfile, "- %s</range>\n", ntop_ipaddr(&range_p->last_ip));
|
||||||
fprintf(outfile, "\t<gateway></gateway>\n");
|
|
||||||
fprintf(outfile, "\t<defined>%g</defined>\n", range_size);
|
fprintf(outfile, "\t<defined>%g</defined>\n", range_size);
|
||||||
fprintf(outfile, "\t<used>%g</used>\n", range_p->count);
|
fprintf(outfile, "\t<used>%g</used>\n", range_p->count);
|
||||||
fprintf(outfile, "\t<free>%g</free>\n", range_size - range_p->count);
|
fprintf(outfile, "\t<free>%g</free>\n", range_size - range_p->count);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue