summaryrefslogtreecommitdiffstats
path: root/src/receive.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-24 21:06:09 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-24 21:06:09 +0200
commit9855a34f48acf6ae3aaeba9ec37756da41507e64 (patch)
treea02c2a507b3d536182d81e78b878b6b29c617cb9 /src/receive.c
parent1ae3aae35193dce25e5534b12a46011ec7912bb4 (diff)
downloadfastd-9855a34f48acf6ae3aaeba9ec37756da41507e64.tar
fastd-9855a34f48acf6ae3aaeba9ec37756da41507e64.zip
Coding style: always add a space between a pointer's type and the *
Diffstat (limited to 'src/receive.c')
-rw-r--r--src/receive.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/receive.c b/src/receive.c
index f4172f8..ce20c4d 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -42,18 +42,18 @@
static inline void handle_socket_control(struct msghdr *message, const fastd_socket_t *sock, fastd_peer_address_t *local_addr) {
memset(local_addr, 0, sizeof(fastd_peer_address_t));
- const uint8_t *end = (const uint8_t*)message->msg_control + message->msg_controllen;
+ const uint8_t *end = (const uint8_t *)message->msg_control + message->msg_controllen;
struct cmsghdr *cmsg;
for (cmsg = CMSG_FIRSTHDR(message); cmsg; cmsg = CMSG_NXTHDR(message, cmsg)) {
- if ((const uint8_t*)cmsg + sizeof(*cmsg) > end)
+ if ((const uint8_t *)cmsg + sizeof(*cmsg) > end)
return;
#ifdef USE_PKTINFO
if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_PKTINFO) {
struct in_pktinfo pktinfo;
- if ((const uint8_t*)CMSG_DATA(cmsg) + sizeof(pktinfo) > end)
+ if ((const uint8_t *)CMSG_DATA(cmsg) + sizeof(pktinfo) > end)
return;
memcpy(&pktinfo, CMSG_DATA(cmsg), sizeof(pktinfo));
@@ -69,7 +69,7 @@ static inline void handle_socket_control(struct msghdr *message, const fastd_soc
if (cmsg->cmsg_level == IPPROTO_IPV6 && cmsg->cmsg_type == IPV6_PKTINFO) {
struct in6_pktinfo pktinfo;
- if ((uint8_t*)CMSG_DATA(cmsg) + sizeof(pktinfo) > end)
+ if ((uint8_t *)CMSG_DATA(cmsg) + sizeof(pktinfo) > end)
return;
memcpy(&pktinfo, CMSG_DATA(cmsg), sizeof(pktinfo));