mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 21:15:07 -05:00
socket: fix compiler warning on macOS
Disable get_default_inet_domain() together with check_socket_flag() to avoid a warning about unused function. Reported-by: Bryan Christianson <bryan@whatroute.net>
This commit is contained in:
3
socket.c
3
socket.c
@@ -212,6 +212,8 @@ get_reusable_socket(int type, IPSockAddr *spec)
|
|||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
||||||
|
#if defined(SOCK_CLOEXEC) || defined(SOCK_NONBLOCK)
|
||||||
|
|
||||||
static int
|
static int
|
||||||
get_default_inet_domain(void)
|
get_default_inet_domain(void)
|
||||||
{
|
{
|
||||||
@@ -224,7 +226,6 @@ get_default_inet_domain(void)
|
|||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
||||||
#if defined(SOCK_CLOEXEC) || defined(SOCK_NONBLOCK)
|
|
||||||
static int
|
static int
|
||||||
check_socket_flag(int sock_flag, int fd_flag, int fs_flag)
|
check_socket_flag(int sock_flag, int fd_flag, int fs_flag)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user