chiark / gitweb /
Warning tidy-up for FreeBSD.
[disorder] / lib / uaudio-rtp.c
index 71354205ff998c8ba8560076baa57ea2d57604fe..8313054fbc3e43101e9afc858b28a0239fb3d907 100644 (file)
@@ -75,9 +75,6 @@ static uint16_t rtp_sequence;
  */
 static int rtp_errors;
 
-/** @brief Set while paused */
-static volatile int rtp_paused;
-
 /** @brief RTP mode */
 static int rtp_mode;
 
@@ -485,7 +482,7 @@ int rtp_add_recipient(const struct sockaddr_storage *sa) {
     rc = -1;
   else {
     r = xmalloc(sizeof *r);
-    memcpy(&r->sa, sa, sizeof sa);
+    memcpy(&r->sa, sa, sizeof *sa);
     r->next = rtp_recipient_list;
     rtp_recipient_list = r;
     rc = 0;