From fc13a47f4d1895bee8fc293eefa611e7c133e660 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Sun, 17 Aug 2008 23:15:21 -0700 Subject: [PATCH] Use a consistent naming convention for counts. --- datapath/datapath.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datapath/datapath.c b/datapath/datapath.c index 7c264936..6d9a8fe7 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); -- 2.30.2