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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux