summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-07 17:50:22 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-07 17:50:22 +0800
commit459efa8f9a52ed599c4802bd0ed698ffe31c1bef (patch)
treea7313e69287a7cb20bef9f5ea30e2892e686efa3 /mbbsd/mbbsd.c
parentee57b0ef4c119439d166d8fb7c9b44d850a3263c (diff)
downloadpttbbs-459efa8f9a52ed599c4802bd0ed698ffe31c1bef.tar
pttbbs-459efa8f9a52ed599c4802bd0ed698ffe31c1bef.tar.gz
pttbbs-459efa8f9a52ed599c4802bd0ed698ffe31c1bef.tar.bz2
pttbbs-459efa8f9a52ed599c4802bd0ed698ffe31c1bef.tar.lz
pttbbs-459efa8f9a52ed599c4802bd0ed698ffe31c1bef.tar.xz
pttbbs-459efa8f9a52ed599c4802bd0ed698ffe31c1bef.tar.zst
pttbbs-459efa8f9a52ed599c4802bd0ed698ffe31c1bef.zip
* fix: should use pointer instead.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4513 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index c6d9f182..a66767a9 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1468,7 +1468,7 @@ set_connection_opt(int sock)
#if defined(SOL_TCP) && defined(TCP_KEEPIDLE)
{
const int idle = 300*2; // experimental, minimal keep alive check
- setsockopt(sock, SOL_TCP, TCP_KEEPIDLE, (void*)idle, sizeof(idle));
+ setsockopt(sock, SOL_TCP, TCP_KEEPIDLE, (void*)&idle, sizeof(idle));
}
#endif