From: Roy Marples Date: Wed, 14 May 2008 09:21:26 +0000 (+0000) Subject: Move the dhcp_ops structure off bss. X-Git-Tag: v4.0.2~413 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=864bef556062add3810ebd33695d95b8f2f02d34;p=thirdparty%2Fdhcpcd.git Move the dhcp_ops structure off bss. --- diff --git a/client.c b/client.c index 1227c6b8..ab97dee3 100644 --- a/client.c +++ b/client.c @@ -116,7 +116,7 @@ struct dhcp_op { const char *name; }; -static struct dhcp_op dhcp_ops[] = { +static const struct dhcp_op const dhcp_ops[] = { { DHCP_DISCOVER, "DHCP_DISCOVER" }, { DHCP_OFFER, "DHCP_OFFER" }, { DHCP_REQUEST, "DHCP_REQUEST" }, @@ -131,12 +131,11 @@ static struct dhcp_op dhcp_ops[] = { static const char * get_dhcp_op(uint8_t type) { - struct dhcp_op *d; + const struct dhcp_op *d; for (d = dhcp_ops; d->name; d++) if (d->value == type) return d->name; - return NULL; }