enabled and fixed -Wmissing-prototypes compiler warnings

Co-authored-by: matt335672 <30179339+matt335672@users.noreply.github.com>
This commit is contained in:
firewave
2023-10-20 17:14:47 +02:00
parent f92076a2e7
commit fb9c175b11
40 changed files with 183 additions and 144 deletions
+7 -7
View File
@@ -38,7 +38,7 @@
#define CONNECT_DELAY_ON_FAIL_MS 2000
/*****************************************************************************/
int
static int
trans_tls_recv(struct trans *self, char *ptr, int len)
{
if (self->tls == NULL)
@@ -49,7 +49,7 @@ trans_tls_recv(struct trans *self, char *ptr, int len)
}
/*****************************************************************************/
int
static int
trans_tls_send(struct trans *self, const char *data, int len)
{
if (self->tls == NULL)
@@ -60,7 +60,7 @@ trans_tls_send(struct trans *self, const char *data, int len)
}
/*****************************************************************************/
int
static int
trans_tls_can_recv(struct trans *self, int sck, int millis)
{
if (self->tls == NULL)
@@ -71,21 +71,21 @@ trans_tls_can_recv(struct trans *self, int sck, int millis)
}
/*****************************************************************************/
int
static int
trans_tcp_recv(struct trans *self, char *ptr, int len)
{
return g_tcp_recv(self->sck, ptr, len, 0);
}
/*****************************************************************************/
int
static int
trans_tcp_send(struct trans *self, const char *data, int len)
{
return g_tcp_send(self->sck, data, len, 0);
}
/*****************************************************************************/
int
static int
trans_tcp_can_recv(struct trans *self, int sck, int millis)
{
return g_sck_can_recv(sck, millis);
@@ -235,7 +235,7 @@ trans_get_wait_objs_rw(struct trans *self, tbus *robjs, int *rcount,
}
/*****************************************************************************/
int
static int
trans_send_waiting(struct trans *self, int block)
{
struct stream *temp_s;