]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Unit-tests] Fix unused function in switch_rtp_pcap 1705/head
authorAndrey Volk <andywolk@gmail.com>
Wed, 29 Jun 2022 18:42:37 +0000 (21:42 +0300)
committerGitHub <noreply@github.com>
Wed, 29 Jun 2022 18:42:37 +0000 (21:42 +0300)
tests/unit/switch_rtp_pcap.c

index 74b79f9a244738bc5db4612d7857996a44405740..647e481c8e350b78e18bd506f5a940ff296f7154 100644 (file)
@@ -76,6 +76,7 @@ struct sniff_ip {
 #define IP_HL(ip)              (((ip)->ip_vhl) & 0x0f)
 
 /* switch_rtp.c - calc_local_lsr_now()  */
+#if 0
 static inline uint32_t test_calc_local_lsr_now(switch_time_t now, uint32_t past /*milliseconds*/) 
 {
 //     switch_time_t now;
@@ -90,7 +91,6 @@ static inline uint32_t test_calc_local_lsr_now(switch_time_t now, uint32_t past
        return lsr_now;
 }
 
-#if 0
 static void test_prepare_rtcp(void *rtcp_packet, float est_last, uint32_t rtt, uint8_t loss) 
 {
        /* taken from switch_rtp.c, rtcp_generate_sender_info() */