]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Quieten a warning from clang on FreeBSD
authorMike Brady <mikebrady@eircom.net>
Sat, 25 Nov 2017 20:46:37 +0000 (20:46 +0000)
committerMike Brady <mikebrady@eircom.net>
Sat, 25 Nov 2017 20:46:37 +0000 (20:46 +0000)
rtp.c

diff --git a/rtp.c b/rtp.c
index 14f996182f4b1f9287accfced72a7f0378939aee..1e082bd1f3d5833cebb22f9ec16fabf3c2f49f40 100644 (file)
--- a/rtp.c
+++ b/rtp.c
@@ -780,7 +780,7 @@ void rtp_request_resend(seq_t first, uint32_t count, rtsp_conn_info *conn) {
 
     char req[8]; // *not* a standard RTCP NACK
     req[0] = 0x80;
-    req[1] = 0x55 | 0x80;                        // Apple 'resend'
+    req[1] = (char)0x55 | (char)0x80;            // Apple 'resend'
     *(unsigned short *)(req + 2) = htons(1);     // our seqnum
     *(unsigned short *)(req + 4) = htons(first); // missed seqnum
     *(unsigned short *)(req + 6) = htons(count); // count