[libvirt] [PATCH 12/30] nwfilter/: Remove spaces after casts

Martin Kletzander mkletzan at redhat.com
Wed Apr 25 13:24:49 UTC 2018


Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
 src/nwfilter/nwfilter_dhcpsnoop.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/nwfilter/nwfilter_dhcpsnoop.c b/src/nwfilter/nwfilter_dhcpsnoop.c
index 6069e7046075..659277d47a45 100644
--- a/src/nwfilter/nwfilter_dhcpsnoop.c
+++ b/src/nwfilter/nwfilter_dhcpsnoop.c
@@ -987,7 +987,7 @@ virNWFilterSnoopDHCPDecode(virNWFilterSnoopReqPtr req,
     switch (ntohs(pep->eh_type)) {
     case ETHERTYPE_IP:
         VIR_WARNINGS_NO_CAST_ALIGN
-        pip = (struct iphdr *) pep->eh_data;
+        pip = (struct iphdr *)pep->eh_data;
         VIR_WARNINGS_RESET
         len -= offsetof(virNWFilterSnoopEthHdr, eh_data);
         break;
@@ -999,13 +999,13 @@ virNWFilterSnoopDHCPDecode(virNWFilterSnoopReqPtr req,
         return -2;
 
     VIR_WARNINGS_NO_CAST_ALIGN
-    pup = (struct udphdr *) ((char *) pip + (pip->ihl << 2));
+    pup = (struct udphdr *)((char *)pip + (pip->ihl << 2));
     VIR_WARNINGS_RESET
     len -= pip->ihl << 2;
     if (len < 0)
         return -2;
 
-    pd = (virNWFilterSnoopDHCPHdrPtr) ((char *) pup + sizeof(*pup));
+    pd = (virNWFilterSnoopDHCPHdrPtr) ((char *)pup + sizeof(*pup));
     len -= sizeof(*pup);
     if (len < 0)
         return -2;                 /* invalid packet length */
-- 
2.17.0




More information about the libvir-list mailing list