X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdhcp.c;h=62ede06e43b793ed5f3e38be135632a0765713ac;hb=23e795f4dd9af5191773a5ee840642737a37e91d;hp=0345efe1509cb8802a09272ceaa3308be84a4078;hpb=d98e60075528c3065ad453f7add4b30f22edcde3;p=openvswitch diff --git a/lib/dhcp.c b/lib/dhcp.c index 0345efe1..62ede06e 100644 --- a/lib/dhcp.c +++ b/lib/dhcp.c @@ -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;