Change in osmo-trx[master]: cosmetic: Use proper whitespace in several for loops

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Sep 13 14:27:48 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/10856 )

Change subject: cosmetic: Use proper whitespace in several for loops
......................................................................

cosmetic: Use proper whitespace in several for loops

Change-Id: I82bdeb8a3fa38f3d125e8cbccc3eddbf2b8d8f58
---
M Transceiver52M/device/usrp1/USRPDevice.cpp
M tests/Transceiver52M/convolve_test.c
2 files changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/Transceiver52M/device/usrp1/USRPDevice.cpp b/Transceiver52M/device/usrp1/USRPDevice.cpp
index 758ee55..5d19514 100644
--- a/Transceiver52M/device/usrp1/USRPDevice.cpp
+++ b/Transceiver52M/device/usrp1/USRPDevice.cpp
@@ -398,7 +398,7 @@
 
     // read USRP packets, parse and save A/D data as needed
     readLen = m_uRx->read((void *)readBuf,readLen,overrun);
-    for(int pktNum = 0; pktNum < (readLen/512); pktNum++) {
+    for (int pktNum = 0; pktNum < (readLen/512); pktNum++) {
       // tmpBuf points to start of a USB packet
       uint32_t* tmpBuf = (uint32_t *) (readBuf+pktNum*512/4);
       TIMESTAMP pktTimestamp = usrp_to_host_u32(tmpBuf[1]);
diff --git a/tests/Transceiver52M/convolve_test.c b/tests/Transceiver52M/convolve_test.c
index 88624af..54bc7a1 100644
--- a/tests/Transceiver52M/convolve_test.c
+++ b/tests/Transceiver52M/convolve_test.c
@@ -18,7 +18,7 @@
 void gen_floats(float *vect, int len)
 {
 	int i;
-	for(i=0;i<len;i++) {
+	for (i = 0; i < len; i++) {
 		vect[i] = (float)rand()/(float)(RAND_MAX);
 	}
 }
@@ -45,7 +45,7 @@
 	int i;
 
 	printf("float %s[] = {", name);
-	for(i=0;i<len;i++) {
+	for(i = 0; i < len; i++) {
 
 		printf("%f",vect[i]);
 

-- 
To view, visit https://gerrit.osmocom.org/10856
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I82bdeb8a3fa38f3d125e8cbccc3eddbf2b8d8f58
Gerrit-Change-Number: 10856
Gerrit-PatchSet: 3
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180913/98c23fab/attachment.htm>


More information about the gerrit-log mailing list