Commit 074d8776 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

tls: drop unused vlc_tls_SocketOpen() parameter

parent 16d88a1a
......@@ -230,7 +230,7 @@ VLC_API void vlc_tls_Delete (vlc_tls_creds_t *);
*
* This function is not a cancellation point.
*/
VLC_API vlc_tls_t *vlc_tls_SocketOpen(vlc_object_t *obj, int fd);
VLC_API vlc_tls_t *vlc_tls_SocketOpen(int fd);
struct addrinfo;
......@@ -257,7 +257,7 @@ static inline vlc_tls_t *
vlc_tls_ClientSessionCreateFD(vlc_tls_creds_t *crd, int fd, const char *host,
const char *srv, const char *const *lp, char **p)
{
vlc_tls_t *sock = vlc_tls_SocketOpen(VLC_OBJECT(crd), fd);
vlc_tls_t *sock = vlc_tls_SocketOpen(fd);
if (unlikely(sock == NULL))
return NULL;
......
......@@ -47,7 +47,7 @@ static void conn_create(void)
if (vlc_socketpair(PF_LOCAL, SOCK_STREAM, 0, fds, false))
assert(!"socketpair");
struct vlc_tls *tls = vlc_tls_SocketOpen(NULL, fds[1]);
struct vlc_tls *tls = vlc_tls_SocketOpen(fds[1]);
assert(tls != NULL);
external_fd = fds[0];
......
......@@ -93,7 +93,7 @@ static void conn_create(void)
if (vlc_socketpair(PF_LOCAL, SOCK_STREAM, 0, fds, false))
assert(!"socketpair");
struct vlc_tls *tls = vlc_tls_SocketOpen(NULL, fds[1]);
struct vlc_tls *tls = vlc_tls_SocketOpen(fds[1]);
assert(tls != NULL);
external_fd = fds[0];
......
......@@ -211,7 +211,7 @@ error:
vlc_tls_t *vlc_tls_ServerSessionCreate(vlc_tls_creds_t *crd, int fd,
const char *const *alpn)
{
vlc_tls_t *sock = vlc_tls_SocketOpen(VLC_OBJECT(crd), fd);
vlc_tls_t *sock = vlc_tls_SocketOpen(fd);
if (unlikely(sock == NULL))
return NULL;
......@@ -372,7 +372,7 @@ static void vlc_tls_SocketClose(vlc_tls_t *tls)
free(tls);
}
vlc_tls_t *vlc_tls_SocketOpen(vlc_object_t *obj, int fd)
vlc_tls_t *vlc_tls_SocketOpen(int fd)
{
vlc_tls_socket_t *sock = malloc(sizeof (*sock));
if (unlikely(sock == NULL))
......@@ -443,7 +443,7 @@ static vlc_tls_t *vlc_tls_SocketOpenAddrInfoSingle(vlc_object_t *obj,
}
}
vlc_tls_t *tls = vlc_tls_SocketOpen(obj, fd);
vlc_tls_t *tls = vlc_tls_SocketOpen(fd);
if (unlikely(tls == NULL))
goto giveup;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment