From: Martin Kletzander Date: Wed, 25 Apr 2018 12:42:34 +0000 (+0200) Subject: nwfilter/: Remove spaces after casts X-Git-Tag: v4.4.0-rc1~326 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf057fbefbde9b1a6589ca5df1f7eef10915b671;p=thirdparty%2Flibvirt.git nwfilter/: Remove spaces after casts Signed-off-by: Martin Kletzander Reviewed-by: Ján Tomko --- diff --git a/src/nwfilter/nwfilter_dhcpsnoop.c b/src/nwfilter/nwfilter_dhcpsnoop.c index fa079bc4b5..aff062ca7c 100644 --- a/src/nwfilter/nwfilter_dhcpsnoop.c +++ b/src/nwfilter/nwfilter_dhcpsnoop.c @@ -998,7 +998,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; @@ -1010,13 +1010,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 */