From: Justin Pettit Date: Mon, 18 Aug 2008 06:15:21 +0000 (-0700) Subject: Use a consistent naming convention for counts. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=fc13a47f4d1895bee8fc293eefa611e7c133e660;p=sliver-openvswitch.git Use a consistent naming convention for counts. --- diff --git a/datapath/datapath.c b/datapath/datapath.c index 7c264936b..6d9a8fe7a 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -1279,11 +1279,11 @@ static int table_stats_dump(struct datapath *dp, void *state, void *body, int *body_len) { struct ofp_table_stats *ots; - int nbytes = dp->chain->n_tables * sizeof *ots; + int n_bytes = dp->chain->n_tables * sizeof *ots; int i; - if (nbytes > *body_len) + if (n_bytes > *body_len) return -ENOBUFS; - *body_len = nbytes; + *body_len = n_bytes; for (i = 0, ots = body; i < dp->chain->n_tables; i++, ots++) { struct sw_table_stats stats; dp->chain->tables[i]->stats(dp->chain->tables[i], &stats);