summaryrefslogtreecommitdiff
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-10-26 19:46:37 +0100
committerMans Rullgard <mans@mansr.com>2012-10-27 13:11:46 +0100
commitbe2efe0c7b6a8188988d7de5da236d794312b5bb (patch)
treeef409b4293decc24bd9caf5e673bf36f687bb54f /libavformat/udp.c
parent9efbfe57e082b0f42bf0c830a4fdc6b80d2b13ca (diff)
udp: use socklen_t where appropriate
getsockname() takes a pointer to socklen_t which is not necessarily int. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index e848ecdcc8..373a4c97a8 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -257,7 +257,7 @@ static int udp_set_url(struct sockaddr_storage *addr,
}
static int udp_socket_create(UDPContext *s, struct sockaddr_storage *addr,
- int *addr_len, const char *localaddr)
+ socklen_t *addr_len, const char *localaddr)
{
int udp_fd = -1;
struct addrinfo *res0 = NULL, *res = NULL;
@@ -389,7 +389,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
const char *p;
char buf[256];
struct sockaddr_storage my_addr;
- int len;
+ socklen_t len;
int reuse_specified = 0;
int i, include = 0, num_sources = 0;
char *sources[32];