]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common,msg: define SOCKOPT_VAL_TYPE
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 16 Oct 2019 14:56:48 +0000 (17:56 +0300)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 8 Jul 2020 06:38:39 +0000 (06:38 +0000)
commitf80cadc99876fc516d427d9f688f5a17fbe0bf9b
treed0583adc0a90636fe77898ec6f8d623e1c3716c4
parent2d221a3bd108308d2832dbc2403979a4e7d7e940
common,msg: define SOCKOPT_VAL_TYPE

On Windows, the "optval" argument of the setsockopt function is
a char pointer, as opposed to a void pointer on other platforms.

In order to avoid compilation issues, we'll do an explicit cast
using a conditionally defined type.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/common/admin_socket_client.cc
src/include/compat.h
src/msg/async/net_handler.cc