mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 08:16:59 +00:00
fix improve variable names
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
49835cccb5
commit
f5cd7383e4
5 changed files with 48 additions and 52 deletions
|
|
@ -66,7 +66,7 @@ int output_txt(void)
|
|||
struct shared_network_t *shared_p;
|
||||
int ret;
|
||||
FILE *outfile;
|
||||
int max_ipaddr_length = config.dhcp_version == VERSION_6 ? 39 : 16;
|
||||
int max_ipaddr_length = config.ip_version == IPv6 ? 39 : 16;
|
||||
|
||||
if (config.output_file[0]) {
|
||||
outfile = fopen(config.output_file, "w+");
|
||||
|
|
@ -237,7 +237,7 @@ int output_xml(void)
|
|||
|
||||
fprintf(outfile, "<dhcpstatus>\n");
|
||||
|
||||
if (config.output_format == OUTPUT_ETHERNETS) {
|
||||
if (config.print_mac_addreses == 1) {
|
||||
struct leases_t *l;
|
||||
|
||||
for (l = leases; l != NULL; l = l->hh.next) {
|
||||
|
|
@ -342,7 +342,7 @@ int output_json(void)
|
|||
|
||||
fprintf(outfile, "{\n");
|
||||
|
||||
if (config.output_format == OUTPUT_ETHERNETS) {
|
||||
if (config.print_mac_addreses == 1) {
|
||||
struct leases_t *l;
|
||||
|
||||
fprintf(outfile, " \"active_leases\": [");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue