[Asterisk-code-review] res_rtp_asterisk: Statically declare rtp_drop_packets_data object (asterisk[16])

Friendly Automation asteriskteam at digium.com
Thu Apr 1 07:54:20 CDT 2021


Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/15723 )

Change subject: res_rtp_asterisk: Statically declare rtp_drop_packets_data object
......................................................................

res_rtp_asterisk: Statically declare rtp_drop_packets_data object

This patch makes the drop_packets_data object static.

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

Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Friendly Automation: Approved for Submit



diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 17041fe..16c3be0 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -7560,7 +7560,9 @@
 	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)
 {

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/15723
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: If4f9b21fa0c47d41a35b6b05941d978efb4da87b
Gerrit-Change-Number: 15723
Gerrit-PatchSet: 2
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210401/9b9b7638/attachment.html>


More information about the asterisk-code-review mailing list