From 5e41f10763f7de379b52f8c1a421a1b0aad61041 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 6 Jan 2024 19:33:34 -0800 Subject: Fix warning from inconsistent socket_pair prototype. --- src/core/platform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/platform.h b/src/core/platform.h index 0b5ec634..2e6c7eb8 100644 --- a/src/core/platform.h +++ b/src/core/platform.h @@ -1,5 +1,5 @@ // -// Copyright 2021 Staysail Systems, Inc. +// Copyright 2024 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // Copyright 2018 Devolutions // @@ -445,7 +445,7 @@ extern int nni_plat_udp_sockname(nni_plat_udp *, nni_sockaddr *); // in APIs to transport file descriptors, or across a fork/exec boundary (so // that child processes may use these with socket to inherit a socket that is // connected to the parent.) -extern int nni_socket_pair(int *); +extern int nni_socket_pair(int [2]); // // File/Store Support -- cgit v1.2.3-70-g09d2