The type is "ssize_t", not "int", let's be accurate about that, as these
types are different on some archs.
Given that we don't actually care about the return value reall, drop
the whole assignment, just check if negative.
};
struct cmsghdr *cmsg;
struct in_pktinfo *pktinfo;
- int r;
assert(server);
assert(server->fd >= 0);
pktinfo->ipi_ifindex = server->ifindex;
pktinfo->ipi_spec_dst.s_addr = server->address;
- r = sendmsg(server->fd, &msg, 0);
- if (r < 0)
+ if (sendmsg(server->fd, &msg, 0) < 0)
return -errno;
return 0;