From 1414b9cc576138d9f286f536852b8d158d89d5a5 Mon Sep 17 00:00:00 2001
From: Kevin Harwell <kharwell@sangoma.com>
Date: Wed, 31 Mar 2021 12:17:58 -0500
Subject: [PATCH] res_rtp_asterisk: Statically declare rtp_drop_packets_data
 object

This patch makes the drop_packets_data object static.

Change-Id: If4f9b21fa0c47d41a35b6b05941d978efb4da87b
---
 res/res_rtp_asterisk.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 17041fec7c..16c3be01ac 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -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)
 {
-- 
GitLab