ofproto: Change account_cb to use uint64_t.
authorEthan Jackson <ethan@nicira.com>
Fri, 25 Feb 2011 01:04:47 +0000 (17:04 -0800)
committerEthan Jackson <ethan@nicira.com>
Fri, 25 Feb 2011 01:11:54 +0000 (17:11 -0800)
This is more consistent with ofproto internals and its users.

ofproto/ofproto.h
vswitchd/bridge.c

index 7516068..2828c64 100644 (file)
@@ -154,7 +154,7 @@ struct ofhooks {
     void (*account_flow_cb)(const struct flow *, tag_type tags,
                             const struct nlattr *odp_actions,
                             size_t actions_len,
-                            unsigned long long int n_bytes, void *aux);
+                            uint64_t n_bytes, void *aux);
     void (*account_checkpoint_cb)(void *aux);
 };
 void ofproto_revalidate(struct ofproto *, tag_type);
index a448e05..eadafb0 100644 (file)
@@ -3029,7 +3029,7 @@ static void
 bridge_account_flow_ofhook_cb(const struct flow *flow, tag_type tags,
                               const struct nlattr *actions,
                               size_t actions_len,
-                              unsigned long long int n_bytes, void *br_)
+                              uint64_t n_bytes, void *br_)
 {
     struct bridge *br = br_;
     const struct nlattr *a;