From: Simon Horman Date: Thu, 5 Sep 2013 05:19:12 +0000 (+0900) Subject: Use enum ofp11_group_type in struct ofgroup X-Git-Tag: v2.1.0~670 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=56750e2e32e23025a0882e75f02d93ad556b77fa;p=cascardo%2Fovs.git Use enum ofp11_group_type in struct ofgroup Use enum ofp11_group_type for the 'type' field of struct ofgroup as the enum exactly covers all the valid values of the field. Signed-off-by: Simon Horman Signed-off-by: Ben Pfaff --- diff --git a/ofproto/ofproto-provider.h b/ofproto/ofproto-provider.h index 433e03055..0b8a5e5bb 100644 --- a/ofproto/ofproto-provider.h +++ b/ofproto/ofproto-provider.h @@ -320,7 +320,7 @@ struct ofgroup { struct hmap_node hmap_node; /* In struct ofproto's "groups" hmap. */ struct ofproto *ofproto; /* The ofproto that contains this group. */ uint32_t group_id; - uint8_t type; /* One of OFPGT_*. */ + enum ofp11_group_type type; /* One of OFPGT_*. */ long long int created; /* Creation time. */ long long int modified; /* Time of last modification. */