Fixed some warnings

This commit is contained in:
Martin Pulec
2018-08-30 11:33:22 +02:00
parent f28a7f4b95
commit 8706990ec1
2 changed files with 3 additions and 3 deletions

View File

@@ -208,7 +208,7 @@ static void qdestroy(struct item *queue)
free(queue);
}
struct response *change_replica_type(struct hd_rum_translator_state *s,
static struct response *change_replica_type(struct hd_rum_translator_state *s,
struct module *mod, struct message *msg, int index)
{
struct replica *r = (struct replica *) mod->priv_data;

View File

@@ -1303,7 +1303,7 @@ int udp_set_recv_buf(socket_udp *s, int size)
{
int opt = 0;
socklen_t opt_size;
if(SETSOCKOPT (s->local->fd, SOL_SOCKET, SO_RCVBUF, (const sockopt_t)&size,
if (SETSOCKOPT(s->local->fd, SOL_SOCKET, SO_RCVBUF, (sockopt_t) &size,
sizeof(size)) != 0) {
perror("Unable to set socket buffer size");
return FALSE;
@@ -1329,7 +1329,7 @@ int udp_set_send_buf(socket_udp *s, int size)
{
int opt = 0;
socklen_t opt_size;
if(SETSOCKOPT (s->local->fd, SOL_SOCKET, SO_SNDBUF, (const sockopt_t)&size,
if (SETSOCKOPT(s->local->fd, SOL_SOCKET, SO_SNDBUF, (sockopt_t) &size,
sizeof(size)) != 0) {
perror("Unable to set socket buffer size");
return FALSE;