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

laforge gerrit-no-reply at lists.osmocom.org
Mon Jul 5 12:09:08 UTC 2021


laforge has submitted this change. ( 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(-)

Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



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: 3
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210705/7f8699d0/attachment.htm>


More information about the gerrit-log mailing list