Use enum ofp11_group_type in struct ofgroup
authorSimon Horman <horms@verge.net.au>
Thu, 5 Sep 2013 05:19:12 +0000 (14:19 +0900)
committerBen Pfaff <blp@nicira.com>
Thu, 5 Sep 2013 20:02:29 +0000 (13:02 -0700)
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 <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-provider.h

index 433e030..0b8a5e5 100644 (file)
@@ -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. */