Skip to content

Commit 76e2668

Browse files
committed
network-unix: create_cancel_fd() can be static
This function is only used in network-unix.c, and therefore can be made static. Signed-off-by: Paul Cercueil <[email protected]>
1 parent 5fd8fce commit 76e2668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

network-unix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int set_blocking_mode(int fd, bool blocking)
3838
#if WITH_NETWORK_EVENTFD
3939
#include <sys/eventfd.h>
4040

41-
int create_cancel_fd(struct iiod_client_pdata *io_ctx)
41+
static int create_cancel_fd(struct iiod_client_pdata *io_ctx)
4242
{
4343
io_ctx->cancel_fd[0] = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK);
4444
if (io_ctx->cancel_fd[0] < 0)
@@ -48,7 +48,7 @@ int create_cancel_fd(struct iiod_client_pdata *io_ctx)
4848

4949
#else /* WITH_NETWORK_EVENTFD */
5050

51-
int create_cancel_fd(struct iiod_client_pdata *io_ctx)
51+
static int create_cancel_fd(struct iiod_client_pdata *io_ctx)
5252
{
5353
int ret;
5454

0 commit comments

Comments
 (0)