History

avserver: use socklen_t where appropriate

Various socket functions expect a pointer to socklen_t which is not necessarily int.

Mans Rullgard committed 14 years ago

Commit cc64ec51 parent be2efe01 file · +6 −3Browse files

Showing the changes to avserver.c (1 of 1 file). Show all

Unified · Split

avserver.c+6−3
@@ -799,7 +799,8 @@ static void http_send_too_busy_reply(int fd) · 798 unmodified lines
799static void new_connection(int server_fd, int is_rtsp)799static void new_connection(int server_fd, int is_rtsp)
800{800{
801 struct sockaddr_in from_addr;801 struct sockaddr_in from_addr;
802 int fd, len;802 socklen_t len;
803 int fd;
803 HTTPContext *c = NULL;804 HTTPContext *c = NULL;
804 805
805 len = sizeof(from_addr);806 len = sizeof(from_addr);
@@ -1717,7 +1718,8 @@ static int http_parse_request(HTTPContext *c) · 911 unmodified lines
1717 case REDIR_SDP:1718 case REDIR_SDP:
1718 {1719 {
1719 uint8_t *sdp_data;1720 uint8_t *sdp_data;
1720 int sdp_data_size, len;1721 int sdp_data_size;
1722 socklen_t len;
1721 struct sockaddr_in my_addr;1723 struct sockaddr_in my_addr;
1722 1724
1723 q += snprintf(q, c->buffer_size,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 char path1[1024];2993 char path1[1024];
2992 const char *path;2994 const char *path;
2993 uint8_t *content;2995 uint8_t *content;
2994 int content_length, len;2996 int content_length;
2997 socklen_t len;
2995 struct sockaddr_in my_addr;2998 struct sockaddr_in my_addr;
2996 2999
2997 /* find which url is asked */3000 /* find which url is asked */

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