X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdhcp.c;h=e6d5735e80c251432d49d0de831a79dabb3b2a89;hb=cb49ee4fd15e1b24aaae4a2d25f3dd538734b4df;hp=51d6ed0708896158873bfb5bb785ed052e610cfd;hpb=413f274f20bd7e614e144b512b38984d1e9f28b3;p=openvswitch diff --git a/lib/dhcp.c b/lib/dhcp.c index 51d6ed07..e6d5735e 100644 --- a/lib/dhcp.c +++ b/lib/dhcp.c @@ -24,10 +24,10 @@ #include #include "dynamic-string.h" #include "ofpbuf.h" - -#define THIS_MODULE VLM_dhcp #include "vlog.h" +VLOG_DEFINE_THIS_MODULE(dhcp) + /* Information about a DHCP argument type. */ struct arg_type { const char *name; /* Name. */ @@ -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;