X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdhcp.c;h=62ede06e43b793ed5f3e38be135632a0765713ac;hb=e868fb3d322f5c46385f1fc6db5bb1ab33f90305;hp=e16176ba1bf32ee83059e6a6aa9e85df833e5aab;hpb=a0bc29a541fc7dc6e20137d5558e2094d614e6ab;p=openvswitch diff --git a/lib/dhcp.c b/lib/dhcp.c index e16176ba..62ede06e 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. */ @@ -561,8 +561,7 @@ parse_options(struct dhcp_msg *msg, const char *name, void *data, size_t size, { struct ofpbuf b; - b.data = data; - b.size = size; + ofpbuf_use_const(&b, data, size); for (;;) { uint8_t *code, *len; void *payload;