summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 36403bc)
raw | patch | inline | side by side (parent: 36403bc)
author | Aman Gupta <aman@tmm1.net> | |
Thu, 20 Aug 2009 09:53:22 +0000 (11:53 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Thu, 20 Aug 2009 09:53:22 +0000 (11:53 +0200) |
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index 156028e27992239fb803bda104e35adafa2ca38b..c25c88d11311ded647baeca9aa63d75ac88c7d3c 100644 (file)
--- a/src/network.c
+++ b/src/network.c
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;