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
799799 static void new_connection(int server_fd, int is_rtsp)
800800 {
801801 struct sockaddr_in from_addr;
802− int fd, len;
802+ socklen_t len;
803+ int fd;
803804 HTTPContext *c = NULL;
804805
805806 len = sizeof(from_addr);
@@ -1717,7 +1718,8 @@ static int http_parse_request(HTTPContext *c) · 911 unmodified lines
17171718 case REDIR_SDP:
17181719 {
17191720 uint8_t *sdp_data;
1720− int sdp_data_size, len;
1721+ int sdp_data_size;
1722+ socklen_t len;
17211723 struct sockaddr_in my_addr;
17221724
17231725 q += snprintf(q, c->buffer_size,
@@ -2991,7 +2993,8 @@ static void rtsp_cmd_describe(HTTPContext *c, const char *url) · 1267 unmodified lines
29912993 char path1[1024];
29922994 const char *path;
29932995 uint8_t *content;
2994− int content_length, len;
2996+ int content_length;
2997+ socklen_t len;
29952998 struct sockaddr_in my_addr;
29962999
29973000 /* 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