History

udp: use socklen_t where appropriate

getsockname() takes a pointer to socklen_t which is not necessarily int.

Mans Rullgard committed 14 years ago

Commit be2efe01 parent 9efbfe51 file · +2 −2Browse files

Unified · Split

libavformat/udp.c+2−2
@@ -257,7 +257,7 @@ static int udp_set_url(struct sockaddr_storage *addr, · 256 unmodified lines
257257 }
258258
259259 static int udp_socket_create(UDPContext *s, struct sockaddr_storage *addr,
260− int *addr_len, const char *localaddr)
260+ socklen_t *addr_len, const char *localaddr)
261261 {
262262 int udp_fd = -1;
263263 struct addrinfo *res0 = NULL, *res = NULL;
@@ -389,7 +389,7 @@ static int udp_open(URLContext *h, const char *uri, int flags) · 125 unmodified lines
389389 const char *p;
390390 char buf[256];
391391 struct sockaddr_storage my_addr;
392− int len;
392+ socklen_t len;
393393 int reuse_specified = 0;
394394 int i, include = 0, num_sources = 0;
395395 char *sources[32];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t