null+****@clear*****
null+****@clear*****
2010年 12月 28日 (火) 11:24:11 JST
Kouhei Sutou 2010-12-28 02:24:11 +0000 (Tue, 28 Dec 2010)
New Revision: 211ee3ce92e1456043dd9ff38269d409069ac654
Log:
use SOL_TCP for socket level instead of 6.
Modified files:
lib/com.c
Modified: lib/com.c (+1 -1)
===================================================================
--- lib/com.c 2010-12-25 23:08:35 +0000 (09233be)
+++ lib/com.c 2010-12-28 02:24:11 +0000 (632d86c)
@@ -938,7 +938,7 @@ grn_com_sopen(grn_ctx *ctx, grn_com_event *ev,
ev->curr_edge_id.sid = 0;
{
int v = 1;
- if (setsockopt(lfd, 6, TCP_NODELAY, (void *) &v, sizeof(int)) == -1) {
+ if (setsockopt(lfd, SOL_TCP, TCP_NODELAY, (void *) &v, sizeof(int)) == -1) {
SERR("setsockopt");
goto exit;
}