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:56:05 +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:56:05 +0000 |
commit | b5a30cfc0b58a4ae7b3169ec9a8955b323b85ed6 (patch) | |
tree | 7132c4da5c13d5604d1f088211655773b65c67dd /src/sync-mode.c | |
parent | 379125b1f618b3102015a64b1e9be0bdbe883930 (diff) | |
download | conntrack-tools-b5a30cfc0b58a4ae7b3169ec9a8955b323b85ed6.tar.gz conntrack-tools-b5a30cfc0b58a4ae7b3169ec9a8955b323b85ed6.zip |
remain is size_t instead of ssize_t to remove the cast
Diffstat (limited to 'src/sync-mode.c')
-rw-r--r-- | src/sync-mode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sync-mode.c b/src/sync-mode.c index b4972a8..b9fc25c 100644 --- a/src/sync-mode.c +++ b/src/sync-mode.c @@ -89,7 +89,7 @@ retry: static void mcast_handler(void) { ssize_t numbytes; - ssize_t remain; + size_t remain; char __net[65536], *ptr = __net; /* XXX: maximum MTU for IPv4 */ numbytes = mcast_recv(STATE_SYNC(mcast_server), __net, sizeof(__net)); @@ -100,7 +100,7 @@ static void mcast_handler(void) while (remain > 0) { struct nethdr *net = (struct nethdr *) ptr; - if ((size_t)remain < NETHDR_SIZ) { + if (remain < NETHDR_SIZ) { STATE(malformed)++; break; } |