diff --git a/rtsp.c b/rtsp.c index e5c7202d..c4eebbcb 100644 --- a/rtsp.c +++ b/rtsp.c @@ -615,7 +615,7 @@ static void *rtsp_conversation_thread_func(void *vfd) { int fd = *(int*)vfd; socklen_t slen = sizeof(conn.remote); - fd = accept(fd, &conn.remote, &slen); + fd = accept(fd, (struct sockaddr *)&conn.remote, &slen); if (fd < 0) { perror("failed to accept connection"); goto shutdown;