mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:23:31 +03:00
cleanup: remove the 'numsocks' argument used in many places
It was used (intended) to pass in the size of the 'socks' array that is also passed to these functions, but was rarely actually checked/used and the array is defined to a fixed size of MAX_SOCKSPEREASYHANDLE entries that should be used instead. Closes #4169
This commit is contained in:
parent
cb542ac4d0
commit
a55faf33d4
27 changed files with 88 additions and 201 deletions
|
|
@ -52,10 +52,7 @@ static CURLcode rtsp_do(struct connectdata *conn, bool *done);
|
|||
static CURLcode rtsp_done(struct connectdata *conn, CURLcode, bool premature);
|
||||
static CURLcode rtsp_connect(struct connectdata *conn, bool *done);
|
||||
static CURLcode rtsp_disconnect(struct connectdata *conn, bool dead);
|
||||
|
||||
static int rtsp_getsock_do(struct connectdata *conn,
|
||||
curl_socket_t *socks,
|
||||
int numsocks);
|
||||
static int rtsp_getsock_do(struct connectdata *conn, curl_socket_t *socks);
|
||||
|
||||
/*
|
||||
* Parse and write out any available RTP data.
|
||||
|
|
@ -77,11 +74,9 @@ static unsigned int rtsp_conncheck(struct connectdata *check,
|
|||
interface and then we're always _sending_ a request and thus we wait for
|
||||
the single socket to become writable only */
|
||||
static int rtsp_getsock_do(struct connectdata *conn,
|
||||
curl_socket_t *socks,
|
||||
int numsocks)
|
||||
curl_socket_t *socks)
|
||||
{
|
||||
/* write mode */
|
||||
(void)numsocks; /* unused, we trust it to be at least 1 */
|
||||
socks[0] = conn->sock[FIRSTSOCKET];
|
||||
return GETSOCK_WRITESOCK(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue