diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-07-07 16:58:46 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-07-07 16:58:46 +0000 |
commit | 6d8c764e1e84593ca2b67e7564584af9311fbec3 (patch) | |
tree | fabdbc661e9b9e416926efb9acbaf2f09e8e7ea5 /sbin/dhclient/options.c | |
parent | 6863900e011336aaaf7a6676828c33e4167043f4 (diff) |
Replace the many occurances of '256' with a new #define
DHO_COUNT.
Diffstat (limited to 'sbin/dhclient/options.c')
-rw-r--r-- | sbin/dhclient/options.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dhclient/options.c b/sbin/dhclient/options.c index aa07efcee41..56d8bc94c9d 100644 --- a/sbin/dhclient/options.c +++ b/sbin/dhclient/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.94 2017/07/07 14:53:07 krw Exp $ */ +/* $OpenBSD: options.c,v 1.95 2017/07/07 16:58:45 krw Exp $ */ /* DHCP options parsing and reassembly. */ @@ -630,10 +630,10 @@ toobig: struct option_data * unpack_options(struct dhcp_packet *packet) { - static struct option_data options[256]; + static struct option_data options[DHO_COUNT]; int i; - for (i = 0; i < 256; i++) { + for (i = 0; i < DHO_COUNT; i++) { free(options[i].data); options[i].data = NULL; options[i].len = 0; |