diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-07 17:50:22 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-07 17:50:22 +0800 |
commit | 459efa8f9a52ed599c4802bd0ed698ffe31c1bef (patch) | |
tree | a7313e69287a7cb20bef9f5ea30e2892e686efa3 | |
parent | ee57b0ef4c119439d166d8fb7c9b44d850a3263c (diff) | |
download | pttbbs-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
-rw-r--r-- | mbbsd/mbbsd.c | 2 |
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 |