From: Ben Pfaff Date: Tue, 9 Feb 2010 18:19:14 +0000 (-0800) Subject: dhcp: Add missing * to use of sizeof. X-Git-Tag: v0.99.2~29 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=691556222cadce47c117134ac1584b75a294367e;p=sliver-openvswitch.git dhcp: Add missing * to use of sizeof. Found with coccinelle and coccicheck (http://coccinelle.lip6.fr/). --- diff --git a/lib/dhcp.c b/lib/dhcp.c index f0c36442d..a8f024482 100644 --- a/lib/dhcp.c +++ b/lib/dhcp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008 Nicira Networks. + * Copyright (c) 2008, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -674,7 +674,7 @@ dhcp_parse(struct dhcp_msg *msg, const struct ofpbuf *b_) msg->giaddr = dhcp->giaddr; memcpy(msg->chaddr, dhcp->chaddr, ETH_ADDR_LEN); - cookie = ofpbuf_try_pull(&b, sizeof cookie); + cookie = ofpbuf_try_pull(&b, sizeof *cookie); if (cookie) { if (ntohl(*cookie) == DHCP_OPTS_COOKIE) { uint8_t overload;