Mercurial > dovecot > core-2.2
comparison src/lib/network.c @ 6411:6a64e64fa3a3 HEAD
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 16 Sep 2007 11:40:56 +0300 |
parents | 8ae4b8d78a25 |
children | 18173a52f721 |
comparison
equal
deleted
inserted
replaced
6410:e4eb71ae8e96 | 6411:6a64e64fa3a3 |
---|---|
229 { | 229 { |
230 if (fd_set_nonblock(fd, nonblock) < 0) | 230 if (fd_set_nonblock(fd, nonblock) < 0) |
231 i_fatal("fd_set_nonblock(%d) failed: %m", fd); | 231 i_fatal("fd_set_nonblock(%d) failed: %m", fd); |
232 } | 232 } |
233 | 233 |
234 int net_set_cork(int fd __attr_unused__, bool cork __attr_unused__) | 234 int net_set_cork(int fd ATTR_UNUSED, bool cork ATTR_UNUSED) |
235 { | 235 { |
236 #ifdef TCP_CORK | 236 #ifdef TCP_CORK |
237 int val = cork; | 237 int val = cork; |
238 | 238 |
239 return setsockopt(fd, IPPROTO_TCP, TCP_CORK, &val, sizeof(val)); | 239 return setsockopt(fd, IPPROTO_TCP, TCP_CORK, &val, sizeof(val)); |