]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
No need to cast
authorRoy Marples <roy@marples.name>
Thu, 17 Jul 2008 12:26:32 +0000 (12:26 +0000)
committerRoy Marples <roy@marples.name>
Thu, 17 Jul 2008 12:26:32 +0000 (12:26 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index a0a4a3b11a2849c97cfd30f9781d76870dcd9b66..3d6a29d92133d94a9ecebf103102bc9e6099167d 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -720,7 +720,7 @@ make_message(struct dhcp_message **message,
 
        dhcp = xzalloc(sizeof (*dhcp));
        m = (uint8_t *)dhcp;
-       p = (uint8_t *)&dhcp->options;
+       p = dhcp->options;
 
        if ((type == DHCP_INFORM ||
             type == DHCP_RELEASE ||