make fluid_socket_*() helper functions static

This commit is contained in:
derselbst 2017-11-26 14:05:22 +01:00
parent 44985b1212
commit e7ff72df46
2 changed files with 3 additions and 8 deletions

View File

@ -945,7 +945,7 @@ int fluid_server_socket_join(fluid_server_socket_t *server_socket)
return fluid_thread_join (server_socket->thread);
}
int fluid_socket_init(void)
static int fluid_socket_init(void)
{
#ifdef _WIN32
WSADATA wsaData;
@ -960,14 +960,14 @@ int fluid_socket_init(void)
return FLUID_OK;
}
void fluid_socket_cleanup(void)
static void fluid_socket_cleanup(void)
{
#ifdef _WIN32
WSACleanup();
#endif
}
int fluid_socket_get_error(void)
static int fluid_socket_get_error(void)
{
#ifdef _WIN32
return (int)WSAGetLastError();

View File

@ -354,11 +354,6 @@ void fluid_socket_close(fluid_socket_t sock);
fluid_istream_t fluid_socket_get_istream(fluid_socket_t sock);
fluid_ostream_t fluid_socket_get_ostream(fluid_socket_t sock);
int fluid_socket_init(void);
void fluid_socket_cleanup(void);
int fluid_socket_get_error(void);
/* Profiling */