Remove trailing whitespace. Update copyright to include 2004.

This commit is contained in:
Eric Andersen
2004-03-15 08:29:22 +00:00
parent 8854004b41
commit c7bda1ce65
374 changed files with 2048 additions and 2051 deletions

View File

@ -47,7 +47,7 @@ int main(int argc, char *argv[])
const char *file = LEASES_FILE;
struct dhcpOfferedAddr lease;
struct in_addr addr;
static const struct option options[] = {
{"absolute", 0, 0, 'a'},
{"remaining", 0, 0, 'r'},
@ -59,7 +59,7 @@ int main(int argc, char *argv[])
int option_index = 0;
c = getopt_long(argc, argv, "arf:", options, &option_index);
if (c == -1) break;
switch (c) {
case 'a': mode = ABSOLUTE; break;
case 'r': mode = REMAINING; break;
@ -70,10 +70,10 @@ int main(int argc, char *argv[])
show_usage();
}
}
fp = xfopen(file, "r");
printf("Mac Address IP-Address Expires %s\n", mode == REMAINING ? "in" : "at");
printf("Mac Address IP-Address Expires %s\n", mode == REMAINING ? "in" : "at");
/* "00:00:00:00:00:00 255.255.255.255 Wed Jun 30 21:49:08 1993" */
while (fread(&lease, sizeof(lease), 1, fp)) {
@ -105,6 +105,6 @@ int main(int argc, char *argv[])
} else printf("%s", ctime(&expires));
}
fclose(fp);
return 0;
}