summaryrefslogtreecommitdiff
path: root/nuttx/arch/sim
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-04-12 12:53:19 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-04-12 12:53:19 -0600
commit5fbbc21f13770cc35c3e61e3109c125d03f172eb (patch)
tree1c1278108c7fe21ea7534a274a6994ae4ed2b6cc /nuttx/arch/sim
parent387c4ace106479e457033b1717051ec55b8d673e (diff)
downloadpx4-nuttx-5fbbc21f13770cc35c3e61e3109c125d03f172eb.tar.gz
px4-nuttx-5fbbc21f13770cc35c3e61e3109c125d03f172eb.tar.bz2
px4-nuttx-5fbbc21f13770cc35c3e61e3109c125d03f172eb.zip
Make sure that there is one space between if and condition
Diffstat (limited to 'nuttx/arch/sim')
-rw-r--r--nuttx/arch/sim/src/up_tapdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/sim/src/up_tapdev.c b/nuttx/arch/sim/src/up_tapdev.c
index 197049a34..253c9744d 100644
--- a/nuttx/arch/sim/src/up_tapdev.c
+++ b/nuttx/arch/sim/src/up_tapdev.c
@@ -227,7 +227,7 @@ unsigned int tapdev_read(unsigned char *buf, unsigned int buflen)
FD_SET(gtapdevfd, &fdset);
ret = select(gtapdevfd + 1, &fdset, NULL, NULL, &tv);
- if(ret == 0)
+ if (ret == 0)
{
return 0;
}
@@ -250,7 +250,7 @@ void tapdev_send(unsigned char *buf, unsigned int buflen)
syslog("tapdev_send: sending %d bytes\n", buflen);
gdrop++;
- if(gdrop % 8 == 7)
+ if (gdrop % 8 == 7)
{
syslog("Dropped a packet!\n");
return;