Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Mar 2010 21:02:00 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r204735 - head/sys/netinet/ipfw/test
Message-ID:  <201003042102.o24L20Sp087802@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Thu Mar  4 21:01:59 2010
New Revision: 204735
URL: http://svn.freebsd.org/changeset/base/204735

Log:
  don't use keywords as variable names.

Modified:
  head/sys/netinet/ipfw/test/mylist.h

Modified: head/sys/netinet/ipfw/test/mylist.h
==============================================================================
--- head/sys/netinet/ipfw/test/mylist.h	Thu Mar  4 20:55:26 2010	(r204734)
+++ head/sys/netinet/ipfw/test/mylist.h	Thu Mar  4 21:01:59 2010	(r204735)
@@ -13,19 +13,19 @@ struct list_head {
 #define INIT_LIST_HEAD(l) do {  (l)->prev = (l)->next = (l); } while (0)
 #define list_empty(l)   ( (l)->next == l )
 static inline void
-__list_add(struct list_head *new, struct list_head *prev,
+__list_add(struct list_head *o, struct list_head *prev,
         struct list_head *next)
 {
-        next->prev = new;
-        new->next = next;
-        new->prev = prev;
-        prev->next = new;
+        next->prev = o;
+        o->next = next;
+        o->prev = prev;
+        prev->next = o;
 }
  
 static inline void
-list_add_tail(struct list_head *new, struct list_head *head)
+list_add_tail(struct list_head *o, struct list_head *head)
 {
-        __list_add(new, head->prev, head);
+        __list_add(o, head->prev, head);
 }
 
 #define list_first_entry(pL, ty, member)        \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003042102.o24L20Sp087802>