Various socket functions expect a pointer to socklen_t which is not necessarily int.
Showing the changes to avserver.c (1 of 1 file). Show all
Unified · Split
| @@ -799,7 +799,8 @@ static void http_send_too_busy_reply(int fd) · 798 unmodified lines | ||
| 799 | 799 | static void new_connection(int server_fd, int is_rtsp) |
| 800 | 800 | { |
| 801 | 801 | struct sockaddr_in from_addr; |
| 802 | − int fd, len; | |
| 802 | + socklen_t len; | |
| 803 | + int fd; | |
| 803 | 804 | HTTPContext *c = NULL; |
| 804 | 805 | |
| 805 | 806 | len = sizeof(from_addr); |
| @@ -1717,7 +1718,8 @@ static int http_parse_request(HTTPContext *c) · 911 unmodified lines | ||
| 1717 | 1718 | case REDIR_SDP: |
| 1718 | 1719 | { |
| 1719 | 1720 | uint8_t *sdp_data; |
| 1720 | − int sdp_data_size, len; | |
| 1721 | + int sdp_data_size; | |
| 1722 | + socklen_t len; | |
| 1721 | 1723 | struct sockaddr_in my_addr; |
| 1722 | 1724 | |
| 1723 | 1725 | q += snprintf(q, c->buffer_size, |
| @@ -2991,7 +2993,8 @@ static void rtsp_cmd_describe(HTTPContext *c, const char *url) · 1267 unmodified lines | ||
| 2991 | 2993 | char path1[1024]; |
| 2992 | 2994 | const char *path; |
| 2993 | 2995 | uint8_t *content; |
| 2994 | − int content_length, len; | |
| 2996 | + int content_length; | |
| 2997 | + socklen_t len; | |
| 2995 | 2998 | struct sockaddr_in my_addr; |
| 2996 | 2999 | |
| 2997 | 3000 | /* find which url is asked */ |