]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_rtp_asterisk: Statically declare rtp_drop_packets_data object
authorKevin Harwell <kharwell@sangoma.com>
Wed, 31 Mar 2021 17:17:58 +0000 (12:17 -0500)
committerKevin Harwell <kharwell@digium.com>
Wed, 31 Mar 2021 20:07:46 +0000 (14:07 -0600)
This patch makes the drop_packets_data object static.

Change-Id: If4f9b21fa0c47d41a35b6b05941d978efb4da87b

res/res_rtp_asterisk.c

index 17041fec7c5e2763f34beb62e804a73ae2cc967d..16c3be01acb9401bacac6dbcb846fc9275d45134 100644 (file)
@@ -7560,7 +7560,9 @@ struct rtp_drop_packets_data {
        struct ast_sockaddr addr;
        /* The optional port from which to drop packets from. */
        unsigned int port;
-} drop_packets_data;
+};
+
+static struct rtp_drop_packets_data drop_packets_data;
 
 static void drop_packets_data_update(struct timeval tv)
 {