mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 08:40:28 +00:00
Fixed some warnings
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user