]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common source file not applicable to open-vm-tools.
authorKaty Feng <fkaty@vmware.com>
Thu, 5 Oct 2023 17:35:27 +0000 (10:35 -0700)
committerKaty Feng <fkaty@vmware.com>
Thu, 5 Oct 2023 17:35:27 +0000 (10:35 -0700)
open-vm-tools/lib/asyncsocket/asyncSocketInterface.c

index 93d1de6df771a7dcfa344ace0f5bda274aa1d78d..fe5b2c91cadba35a58a0d3940036ea51a35e2d79 100644 (file)
@@ -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);
          }
       }