diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2006-12-15 14:56:39 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2006-12-15 14:56:39 +0000 |
commit | 2676df04aa1a467552a0e20a2744c4d643186a66 (patch) | |
tree | 7ec816b34b039980965faffab0302ee2e07e8da6 /sbin/dhclient | |
parent | cedb3930ed3b22477fdcc833ff2ae84dc0b999ce (diff) |
KNF
Diffstat (limited to 'sbin/dhclient')
-rw-r--r-- | sbin/dhclient/clparse.c | 4 | ||||
-rw-r--r-- | sbin/dhclient/dhclient.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c index edbbb58f12c..d6c62d3c387 100644 --- a/sbin/dhclient/clparse.c +++ b/sbin/dhclient/clparse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clparse.c,v 1.29 2006/05/08 17:25:59 deraadt Exp $ */ +/* $OpenBSD: clparse.c,v 1.30 2006/12/15 14:56:38 stevesk Exp $ */ /* Parser for dhclient config and lease files... */ @@ -600,7 +600,7 @@ parse_option_decl(FILE *cfile, struct option_data *options) /* Look up the actual option info. */ fmt = NULL; - for (code=0; code < 256; code++) + for (code = 0; code < 256; code++) if (strcmp(dhcp_options[code].name, val) == 0) break; diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index dac318076b1..7bca24f6f30 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.90 2006/11/27 20:52:30 stevesk Exp $ */ +/* $OpenBSD: dhclient.c,v 1.91 2006/12/15 14:56:38 stevesk Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -942,7 +942,7 @@ packet_to_lease(struct packet *packet) lease->options[i].data[lease->options[i].len] = 0; } - if (!check_option(lease,i)) { + if (!check_option(lease, i)) { /* ignore a bogus lease offer */ warning("Invalid lease option - ignoring offer"); free_client_lease(lease); @@ -965,7 +965,7 @@ packet_to_lease(struct packet *packet) return (NULL); } memcpy(lease->server_name, packet->raw->sname, DHCP_SNAME_LEN); - lease->server_name[DHCP_SNAME_LEN]='\0'; + lease->server_name[DHCP_SNAME_LEN] = '\0'; if (!res_hnok(lease->server_name)) { warning("Bogus server name %s", lease->server_name); free(lease->server_name); @@ -985,7 +985,7 @@ packet_to_lease(struct packet *packet) return (NULL); } memcpy(lease->filename, packet->raw->file, DHCP_FILE_LEN); - lease->filename[DHCP_FILE_LEN]='\0'; + lease->filename[DHCP_FILE_LEN] = '\0'; } return lease; } |