Commit Graph

6 Commits

Author SHA1 Message Date
David du Colombier 798c8c6df8 fix warnings reported by Coverity
fd.c:230 negative_returns: fd is passed to a parameter that cannot be negative.
net.c:65 check_return: Calling setsockopt(fd, 1, 2, (char *)&n, 4U) without checking return value.
net.c:77 check_return: Calling fdnoblock(fd) without checking return value.
net.c:112 check_return: Calling fdnoblock(cfd) without checking return value.
net.c:114 check_return: Calling setsockopt(cfd, IPPROTO_TCP, 1, (char *)&one, 4U) without checking return value.
net.c:144 leaked_storage: Variable result going out of scope leaks the storage it points to.
net.c:168 check_return: Calling fdnoblock(fd) without checking return value.
net.c:173 check_return: Calling setsockopt(fd, 1, 6, &n, 4U) without checking return value.
net.c:206 check_return: Calling getsockopt(fd, 1, 4, (void *)&n, &sn) without checking return value.
task.c:59 negative_returns: fd is passed to a parameter that cannot be negative.
tcpload.c:50 Calling fdread without checking return value (as is done elsewhere 4 out of 5 times).
tcpproxy.c:51 check_return: Calling fdnoblock(fd) without checking return value.
2015-06-24 23:16:58 +02:00
David du Colombier 02b74edba1 implement fdreadn 2014-08-03 18:51:25 +02:00
David du Colombier cbb722db29 remove trailing spaces 2014-08-03 18:28:37 +02:00
David du Colombier ef218ac4d8 implement epoll (Jamie Turner) 2012-08-01 05:00:00 +02:00
David du Colombier eed781b1a9 fix extra warnings
channel.c:116:12: warning: comparison between signed and unsigned integer expressions
fd.c:19:14: warning: unused parameter ‘v’
task.c:316:14: warning: unused parameter ‘s’
task.c:346:21: warning: unused parameter ‘v’
2012-08-01 02:00:00 +02:00
Russ Cox 42f058999e libtask as of 2008/08/01 2009-10-10 13:04:03 -07:00