X-Git-Url: http://git.asbjorn.it/?p=debian%2Fdhcpd-pools.git;a=blobdiff_plain;f=src%2Fgetdata.c;h=430468c14035e9dea02c0151e07688117e9bdf9d;hp=2fc1f5f6a4738fda3e158ecbd78058d9eb2ee912;hb=c11cc921bc68bde380dddbdef3dd347df4fce7c0;hpb=ee35f8bb1f94b177675ab84b963a0fe61cd201eb
diff --git a/src/getdata.c b/src/getdata.c
index 2fc1f5f..430468c 100644
--- a/src/getdata.c
+++ b/src/getdata.c
@@ -134,16 +134,16 @@ int parse_leases(void)
num_backups++;
}
- if ((sw_active_lease == 1)
+ /* FIXME: move to output.c and use FILE *outfile */
+ if ((config.output_format[0] == 'X')
+ && (sw_active_lease == 1)
&& (strstr(line, "hardware ethernet"))) {
nth_field(3, macstring, line);
macstring[strlen(macstring) - 1] = '\0';
- if (config.output_format[0] == 'X') {
- printf
- ("\n\t%s\n\t%s\n\n",
- ipstring, macstring);
- };
+ printf
+ ("\n\t%s\n\t%s\n\n",
+ ipstring, macstring);
}
if ((leasesmallocsize < num_leases) ||