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 7516068ffb9b7102226f4bdca7b6de126045e191..2828c645b3ce805ab331b567da7dddeb1dc59e65 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 a448e05c11349631b54fd5377baad730c05f60ef..eadafb0abed69d7c10ea1796aae82581b626845e 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;