cosmetic: Use proper whitespace in several for loops

Change-Id: I82bdeb8a3fa38f3d125e8cbccc3eddbf2b8d8f58
This commit is contained in:
Pau Espin 2018-09-10 10:36:04 +02:00 committed by Harald Welte
parent 6fdfb68b9e
commit 4d179abfd0
2 changed files with 3 additions and 3 deletions

View File

@ -398,7 +398,7 @@ int USRPDevice::readSamples(std::vector<short *> &bufs, int len, bool *overrun,
// 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]);

View File

@ -18,7 +18,7 @@ float *y;
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 @@ static void dump_floats(float *vect, int len, char *name)
int i;
printf("float %s[] = {", name);
for(i=0;i<len;i++) {
for(i = 0; i < len; i++) {
printf("%f",vect[i]);