diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 4 | ||||
-rw-r--r-- | libsylph/socket.c | 3 |
3 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2007-01-24 + + * libsylph/socket.c: fd_open_inet(): win32: inhibit the warning of + setsockopt(). + 2007-01-22 * libsylph/session.c: session_ping_cb(): prohibit blocking here. diff --git a/ChangeLog.ja b/ChangeLog.ja index 216a73aa..38522aa3 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,7 @@ +2007-01-24 + + * libsylph/socket.c: fd_open_inet(): win32: setsockopt() の警告を抑制。 + 2007-01-22 * libsylph/session.c: session_ping_cb(): ここではブロッキングを回避。 diff --git a/libsylph/socket.c b/libsylph/socket.c index 3409b0e9..abf5671f 100644 --- a/libsylph/socket.c +++ b/libsylph/socket.c @@ -247,7 +247,8 @@ gint fd_open_inet(gushort port) } val = 1; - if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)) < 0) { + if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char *)&val, + sizeof(val)) < 0) { perror("setsockopt"); fd_close(sock); return -1; |