X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fstatus.c;h=e4834d84b862821a3835330afcd38e67b466c269;hb=75ae71da6b2fe14e5d8b3e2a4c39019bf5d7ee29;hp=0df9ce3d9d717f002c22dbe338a5fe075ec079c7;hpb=d295e8e97acae13552a5b220d3fbcff8201064a2;p=openvswitch diff --git a/ofproto/status.c b/ofproto/status.c index 0df9ce3d..e4834d84 100644 --- a/ofproto/status.c +++ b/ofproto/status.c @@ -70,7 +70,7 @@ switch_status_handle_request(struct switch_status *ss, struct rconn *rconn, sr.request.string = (void *) (request + 1); sr.request.length = ntohs(request->header.length) - sizeof *request; ds_init(&sr.output); - LIST_FOR_EACH (c, struct status_category, node, &ss->categories) { + LIST_FOR_EACH (c, node, &ss->categories) { if (!memcmp(c->name, sr.request.string, MIN(strlen(c->name), sr.request.length))) { sr.category = c; @@ -170,8 +170,7 @@ switch_status_destroy(struct switch_status *ss) /* Orphan any remaining categories, so that unregistering them later * won't write to bad memory. */ struct status_category *c, *next; - LIST_FOR_EACH_SAFE (c, next, - struct status_category, node, &ss->categories) { + LIST_FOR_EACH_SAFE (c, next, node, &ss->categories) { list_init(&c->node); } switch_status_unregister(ss->config_cat);