From 958a1612ed7525e21ce562e18508aa64796b2bcc Mon Sep 17 00:00:00 2001 From: James Laird Date: Tue, 2 Apr 2013 22:55:25 +1100 Subject: [PATCH] fix compile warning --- rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;