]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
nwfilter: Change the comment style
authorOsier Yang <jyang@redhat.com>
Tue, 21 May 2013 10:01:00 +0000 (18:01 +0800)
committerOsier Yang <jyang@redhat.com>
Wed, 22 May 2013 05:15:57 +0000 (13:15 +0800)
The more common habit is to add the comment after the statements.

src/nwfilter/nwfilter_dhcpsnoop.c

index b9921e5aeb55bef2577a78c5c10034e72f7166a7..451c7836718dcf77062575d61e4733ea11e87cfe 100644 (file)
@@ -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;
 }