]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Move the dhcp_ops structure off bss.
authorRoy Marples <roy@marples.name>
Wed, 14 May 2008 09:21:26 +0000 (09:21 +0000)
committerRoy Marples <roy@marples.name>
Wed, 14 May 2008 09:21:26 +0000 (09:21 +0000)
client.c

index 1227c6b89f15efb1dfbf25acf891e8e2289baf1b..ab97dee3d5b7e176db38d7a5573a5f2bd7cade6e 100644 (file)
--- 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;
 }