Mercurial > dovecot > core-2.2
diff src/lib/network.c @ 410:1f0e7229ee58 HEAD
Split IOBuffer into mmaped IBuffer, file IBuffer, memory data IBuffer and
file OBuffer.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 14 Oct 2002 02:49:11 +0300 |
parents | f25e575bf1ca |
children | e4aba04143ad |
line wrap: on
line diff
--- a/src/lib/network.c Sun Oct 13 18:52:19 2002 +0300 +++ b/src/lib/network.c Mon Oct 14 02:49:11 2002 +0300 @@ -225,11 +225,13 @@ #endif } -void net_set_cork(int fd __attr_unused__, int cork __attr_unused__) +int net_set_cork(int fd __attr_unused__, int cork __attr_unused__) { #ifdef TCP_CORK - if (setsockopt(fd, SOL_TCP, TCP_CORK, &cork, sizeof(cork)) < 0) - i_error("setsockopt(TCP_CORK) failed: %m"); + return setsockopt(fd, SOL_TCP, TCP_CORK, &cork, sizeof(cork)); +#else + errno = ENOPROTOOPT; + return -1; #endif }