From: Vadim Kochan <[email protected]>

Replace n & tmp variables to more understandable prev & next.

Signed-off-by: Vadim Kochan <[email protected]>
---
 flowtop.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/flowtop.c b/flowtop.c
index 0927ff5..9110e15 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -291,16 +291,16 @@ static struct flow_entry *flow_list_find_id(struct 
flow_list *fl,
 static struct flow_entry *flow_list_find_prev_id(struct flow_list *fl,
                                                 uint32_t id)
 {
-       struct flow_entry *n = rcu_dereference(fl->head), *tmp;
+       struct flow_entry *prev = rcu_dereference(fl->head), *next;
 
-       if (n->flow_id == id)
+       if (prev->flow_id == id)
                return NULL;
 
-       while ((tmp = rcu_dereference(n->next)) != NULL) {
-               if (tmp->flow_id == id)
-                       return n;
+       while ((next = rcu_dereference(prev->next)) != NULL) {
+               if (next->flow_id == id)
+                       return prev;
 
-               n = tmp;
+               prev = next;
        }
 
        return NULL;
-- 
2.4.2

-- 
You received this message because you are subscribed to the Google Groups 
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to