From: Katy Feng Date: Thu, 5 Oct 2023 17:35:27 +0000 (-0700) Subject: Change to common source file not applicable to open-vm-tools. X-Git-Tag: stable-12.4.0~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ab97407104bd86f63ef4ab30462c2234b72e47e;p=thirdparty%2Fopen-vm-tools.git Change to common source file not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/asyncsocket/asyncSocketInterface.c b/open-vm-tools/lib/asyncsocket/asyncSocketInterface.c index 93d1de6df..fe5b2c91c 100644 --- a/open-vm-tools/lib/asyncsocket/asyncSocketInterface.c +++ b/open-vm-tools/lib/asyncsocket/asyncSocketInterface.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2016-2022 VMware, Inc. All rights reserved. + * Copyright (C) 2016-2023 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -383,7 +383,7 @@ AsyncSocket_UseNodelay(AsyncSocket *asyncSocket, // IN/OUT { const int noDelayNative = noDelay ? 1 : 0; return AsyncSocket_SetOption(asyncSocket, - IPPROTO_TCP, TCP_NODELAY, + (AsyncSocketOpts_Layer)IPPROTO_TCP, TCP_NODELAY, &noDelayNative, sizeof noDelayNative); } @@ -443,17 +443,17 @@ AsyncSocket_SetTCPTimeouts(AsyncSocket *asyncSocket, // IN/OUT ret = VT(asyncSocket)->setOption (asyncSocket, - IPPROTO_TCP, TCP_KEEPIDLE, + (AsyncSocketOpts_Layer)IPPROTO_TCP, TCP_KEEPIDLE, &keepIdleSec, sizeof keepIdleSec); if (ret == ASOCKERR_SUCCESS) { ret = VT(asyncSocket)->setOption (asyncSocket, - IPPROTO_TCP, TCP_KEEPINTVL, + (AsyncSocketOpts_Layer)IPPROTO_TCP, TCP_KEEPINTVL, &keepIntvlSec, sizeof keepIntvlSec); if (ret == ASOCKERR_SUCCESS) { ret = VT(asyncSocket)->setOption (asyncSocket, - IPPROTO_TCP, TCP_KEEPCNT, + (AsyncSocketOpts_Layer)IPPROTO_TCP, TCP_KEEPCNT, &keepCnt, sizeof keepCnt); } }