Skip to content

Commit c429a8e

Browse files
committed
session REFACTOR unused function to static
1 parent cf89817 commit c429a8e

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/session_p.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -929,14 +929,6 @@ int nc_sock_accept(int sock, int timeout, char **peer_host, uint16_t *peer_port)
929929
*/
930930
int nc_sock_listen_inet(const char *address, uint16_t port, struct nc_keepalives *ka);
931931

932-
/**
933-
* @brief Create a listening socket (AF_UNIX).
934-
*
935-
* @param[in] opts The server options (unix permissions and address of the socket).
936-
* @return Listening socket, -1 on error.
937-
*/
938-
int nc_sock_listen_unix(const struct nc_server_unix_opts *opts);
939-
940932
/**
941933
* @brief Accept a new connection on a listening socket.
942934
*

src/session_server.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,13 @@ nc_sock_listen_inet(const char *address, uint16_t port, struct nc_keepalives *ka
356356
return -1;
357357
}
358358

359-
int
359+
/**
360+
* @brief Create a listening socket (AF_UNIX).
361+
*
362+
* @param[in] opts The server options (unix permissions and address of the socket).
363+
* @return Listening socket, -1 on error.
364+
*/
365+
static int
360366
nc_sock_listen_unix(const struct nc_server_unix_opts *opts)
361367
{
362368
struct sockaddr_un sun;

0 commit comments

Comments
 (0)