diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-23 12:30:36 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-23 12:30:36 +0000 |
commit | 379125b1f618b3102015a64b1e9be0bdbe883930 (patch) | |
tree | a79eb6f4f0cec0019a02552d895c20e02d987cc0 /src/mcast.c | |
parent | d658f3ed913affe96511309c6bf3d37aaec2910f (diff) | |
download | conntrack-tools-379125b1f618b3102015a64b1e9be0bdbe883930.tar.gz conntrack-tools-379125b1f618b3102015a64b1e9be0bdbe883930.zip |
Max Kellermann <max@duempel.org>:
use size_t
Diffstat (limited to 'src/mcast.c')
-rw-r--r-- | src/mcast.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mcast.c b/src/mcast.c index e977c0b..8307f26 100644 --- a/src/mcast.c +++ b/src/mcast.c @@ -238,9 +238,9 @@ void mcast_client_destroy(struct mcast_sock *m) free(m); } -int mcast_send(struct mcast_sock *m, void *data, int size) +ssize_t mcast_send(struct mcast_sock *m, void *data, int size) { - int ret; + ssize_t ret; ret = sendto(m->fd, data, @@ -260,9 +260,9 @@ int mcast_send(struct mcast_sock *m, void *data, int size) return ret; } -int mcast_recv(struct mcast_sock *m, void *data, int size) +ssize_t mcast_recv(struct mcast_sock *m, void *data, int size) { - int ret; + ssize_t ret; socklen_t sin_size = sizeof(struct sockaddr_in); ret = recvfrom(m->fd, |