diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-22 00:57:16 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-22 00:57:16 +0100 |
commit | df387f268f8d30d0a21731406bf6031cd6ba9588 (patch) | |
tree | 1f1465524c01826a61f7c5f7631c43cce41e6b62 /src/send.c | |
parent | 5266f01d3295e7ac79cf25674167382b86817019 (diff) | |
download | fastd-df387f268f8d30d0a21731406bf6031cd6ba9588.tar fastd-df387f268f8d30d0a21731406bf6031cd6ba9588.zip |
Refactor poll API
Diffstat (limited to 'src/send.c')
-rw-r--r-- | src/send.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -131,7 +131,7 @@ static void send_type(const fastd_socket_t *sock, const fastd_peer_address_t *lo if (!msg.msg_controllen) msg.msg_control = NULL; - int ret = sendmsg(sock->fd, &msg, 0); + int ret = sendmsg(sock->fd.fd, &msg, 0); if (ret < 0 && errno == EINVAL && msg.msg_controllen) { pr_debug2("sendmsg failed, trying again without pktinfo"); @@ -142,7 +142,7 @@ static void send_type(const fastd_socket_t *sock, const fastd_peer_address_t *lo msg.msg_control = NULL; msg.msg_controllen = 0; - ret = sendmsg(sock->fd, &msg, 0); + ret = sendmsg(sock->fd.fd, &msg, 0); } if (ret < 0) { |