[libvirt] [PATCH 30/31] nwfitler: Change the comment style

Osier Yang jyang at redhat.com
Tue May 21 10:01:00 UTC 2013


The more common habit is to add the comment after the statements.
---
 src/nwfilter/nwfilter_dhcpsnoop.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nwfilter/nwfilter_dhcpsnoop.c b/src/nwfilter/nwfilter_dhcpsnoop.c
index b9921e5..451c783 100644
--- a/src/nwfilter/nwfilter_dhcpsnoop.c
+++ b/src/nwfilter/nwfilter_dhcpsnoop.c
@@ -369,7 +369,7 @@ virNWFilterSnoopListAdd(virNWFilterSnoopIPLeasePtr plnew,
 
     for (pl = *end; pl && plnew->timeout < pl->timeout;
          pl = pl->prev)
-        /* empty */ ;
+        ; /* empty */
 
     if (!pl) {
         plnew->next = *start;
@@ -526,7 +526,7 @@ virNWFilterSnoopIPLeaseGetByIP(virNWFilterSnoopIPLeasePtr start,
     for (pl = start;
          pl && !virSocketAddrEqual(&pl->ipAddress, ipaddr);
          pl = pl->next)
-        /* empty */ ;
+        ; /* empty */
     return pl;
 }
 
-- 
1.8.1.4




More information about the libvir-list mailing list