Change in osmo-ttcn3-hacks[master]: library/RTP_Emulation: improve readability of guard statements

fixeria gerrit-no-reply at lists.osmocom.org
Sun Jul 4 02:18:17 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24840 )


Change subject: library/RTP_Emulation: improve readability of guard statements
......................................................................

library/RTP_Emulation: improve readability of guard statements

Change-Id: Ic25646cca5c276feae8dda52153991a8d16913e1
---
M library/RTP_Emulation.ttcn
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/40/24840/1

diff --git a/library/RTP_Emulation.ttcn b/library/RTP_Emulation.ttcn
index 900a196..728d352 100644
--- a/library/RTP_Emulation.ttcn
+++ b/library/RTP_Emulation.ttcn
@@ -493,10 +493,10 @@
 
 
 		/* simply ignore any RTTP/RTP if receiver not enabled */
-		[g_rx_enabled==false] RTP.receive(tr_rtp) {
+		[not g_rx_enabled] RTP.receive(tr_rtp) {
 			g_stats_rtp.num_pkts_rx_err_disabled := g_stats_rtp.num_pkts_rx_err_disabled+1;
 			}
-		[g_rx_enabled==false] RTCP.receive(tr_rtcp) {
+		[not g_rx_enabled] RTCP.receive(tr_rtcp) {
 			g_stats_rtcp.num_pkts_rx_err_disabled := g_stats_rtcp.num_pkts_rx_err_disabled+1;
 			}
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24840
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ic25646cca5c276feae8dda52153991a8d16913e1
Gerrit-Change-Number: 24840
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210704/fcee327a/attachment.htm>


More information about the gerrit-log mailing list