summaryrefslogtreecommitdiff
path: root/src/network.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-06-23 03:57:19 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2016-06-23 03:57:19 -0400
commit72b133f5952f61eb8c695107cbb053d8a522494e (patch)
tree70f7355ea3af82e793819f5b89a9d9d36fe3b7ca /src/network.c
parent1a18669d53874259217358f255936fcaa6885fcc (diff)
downloadlighttpd1.4-72b133f5952f61eb8c695107cbb053d8a522494e.tar.gz
lighttpd1.4-72b133f5952f61eb8c695107cbb053d8a522494e.zip
fix errors detected by Coverity Scan
buffer.c:itostr() undefined behavior taking modulus of negative number additional minor code changes made to quiet other coverity warnings (false positives)
Diffstat (limited to 'src/network.c')
-rw-r--r--src/network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network.c b/src/network.c
index 91078eb4..a0b43835 100644
--- a/src/network.c
+++ b/src/network.c
@@ -1099,7 +1099,7 @@ int network_write_chunkqueue(server *srv, connection *con, chunkqueue *cq, off_t
*/
if (cq->first && cq->first->next) {
corked = 1;
- setsockopt(con->fd, IPPROTO_TCP, TCP_CORK, &corked, sizeof(corked));
+ (void)setsockopt(con->fd, IPPROTO_TCP, TCP_CORK, &corked, sizeof(corked));
}
#endif
@@ -1119,7 +1119,7 @@ int network_write_chunkqueue(server *srv, connection *con, chunkqueue *cq, off_t
#ifdef TCP_CORK
if (corked) {
corked = 0;
- setsockopt(con->fd, IPPROTO_TCP, TCP_CORK, &corked, sizeof(corked));
+ (void)setsockopt(con->fd, IPPROTO_TCP, TCP_CORK, &corked, sizeof(corked));
}
#endif