[vlc-commits] satip: fix signedness warning
Rémi Denis-Courmont
git at videolan.org
Sat Jul 13 11:53:17 CEST 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jul 13 11:49:35 2019 +0300| [7eee6b2dba153f77ad28f1364888ae35d688803c] | committer: Rémi Denis-Courmont
satip: fix signedness warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7eee6b2dba153f77ad28f1364888ae35d688803c
---
modules/access/satip.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/access/satip.c b/modules/access/satip.c
index c4e2446afa..12e4f52d89 100644
--- a/modules/access/satip.c
+++ b/modules/access/satip.c
@@ -388,7 +388,7 @@ static void satip_teardown(void *data) {
};
char *msg;
- ssize_t len = asprintf(&msg, "TEARDOWN %s RTSP/1.0\r\n"
+ int len = asprintf(&msg, "TEARDOWN %s RTSP/1.0\r\n"
"CSeq: %d\r\n"
"Session: %s\r\n\r\n",
sys->control, sys->cseq++, sys->session_id);
@@ -403,7 +403,7 @@ static void satip_teardown(void *data) {
ioctlsocket(sys->tcp_sock, FIONBIO, &(unsigned long){ 1 });
#endif
- for (unsigned sent = 0; sent < len;) {
+ for (int sent = 0; sent < len;) {
ret = poll(&pfd, 1, 5000);
if (ret == 0) {
msg_Err(access, "Timed out sending RTSP teardown\n");
More information about the vlc-commits
mailing list