diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-01-24 07:05:46 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-01-24 07:05:46 +0000 |
commit | cfb51d2abe4a0e31e10be81d99a65d2fc216573d (patch) | |
tree | 76545a2629ba036af04a16ada53d18f17547833e | |
parent | 2a1835bfa4813590131f9da2d511bbbcdad15717 (diff) |
win32: inhibit the warning of setsockopt().
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1501 ee746299-78ed-0310-b773-934348b2243d
-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; |