test: add static qualifier to local functions in test-oneshot-and-hangup

This commit is contained in:
Bert Belder 2018-05-17 00:39:57 -07:00
parent bcc72f8ec5
commit 042bfd32f3
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461

View File

@ -8,7 +8,7 @@
#include "wepoll.h" #include "wepoll.h"
#include "win.h" #include "win.h"
int tcp_socketpair(SOCKET socks[2]) { static int tcp_socketpair(SOCKET socks[2]) {
SOCKET listen_sock; SOCKET listen_sock;
struct sockaddr_in addr; struct sockaddr_in addr;
socklen_t addrlen = sizeof addr; socklen_t addrlen = sizeof addr;
@ -54,7 +54,7 @@ err1:
return -1; return -1;
} }
int sock_set_nonblock(SOCKET sock, bool enable) { static int sock_set_nonblock(SOCKET sock, bool enable) {
u_long arg = enable; u_long arg = enable;
return ioctlsocket(sock, FIONBIO, &arg); return ioctlsocket(sock, FIONBIO, &arg);
} }