From: Aman Gupta Date: Thu, 20 Aug 2009 09:53:22 +0000 (+0200) Subject: network plugin: Remove a now invalid assertion. X-Git-Tag: collectd-4.8.0~33 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=08d06d7d5c2d3f9f52c6db183d7bd0678440906f;p=collectd.git network plugin: Remove a now invalid assertion. Signed-off-by: Florian Forster --- diff --git a/src/network.c b/src/network.c index 156028e2..c25c88d1 100644 --- a/src/network.c +++ b/src/network.c @@ -2075,11 +2075,6 @@ static int network_receive (void) /* {{{ */ ent->fd = listen_sockets_pollfd[i].fd; ent->next = NULL; - /* Hopefully this be optimized out by the compiler. It - * might help prevent stupid bugs in the future though. - */ - assert (sizeof (ent->data) == sizeof (buffer)); - memcpy (ent->data, buffer, buffer_len); ent->data_len = buffer_len;