summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/netutils/uiplib/uiplib.c9
-rw-r--r--apps/nshlib/nsh_codeccmd.c2
-rw-r--r--apps/nshlib/nsh_netcmds.c2
-rw-r--r--apps/system/install/install.c2
4 files changed, 8 insertions, 7 deletions
diff --git a/apps/netutils/uiplib/uiplib.c b/apps/netutils/uiplib/uiplib.c
index 50182efe1..8106789c7 100644
--- a/apps/netutils/uiplib/uiplib.c
+++ b/apps/netutils/uiplib/uiplib.c
@@ -82,7 +82,7 @@ bool uiplib_ipaddrconv(const char *addrstr, uint8_t *ipaddr)
++ipaddr;
tmp = 0;
}
- else if(c >= '0' && c <= '9')
+ else if (c >= '0' && c <= '9')
{
tmp = (tmp * 10) + (c - '0');
}
@@ -130,15 +130,15 @@ bool uiplib_hwmacconv(const char *hwstr, uint8_t *hw)
++hw;
tmp = 0;
}
- else if(c >= '0' && c <= '9')
+ else if (c >= '0' && c <= '9')
{
tmp = (tmp << 4) + (c - '0');
}
- else if(c >= 'a' && c <= 'f')
+ else if (c >= 'a' && c <= 'f')
{
tmp = (tmp << 4) + (c - 'a' + 10);
}
- else if(c >= 'A' && c <= 'F')
+ else if (c >= 'A' && c <= 'F')
{
tmp = (tmp << 4) + (c - 'A' + 10);
}
@@ -151,5 +151,6 @@ bool uiplib_hwmacconv(const char *hwstr, uint8_t *hw)
}
while(c != ':' && c != 0);
}
+
return true;
}
diff --git a/apps/nshlib/nsh_codeccmd.c b/apps/nshlib/nsh_codeccmd.c
index 779fc5ecd..8947edd67 100644
--- a/apps/nshlib/nsh_codeccmd.c
+++ b/apps/nshlib/nsh_codeccmd.c
@@ -348,7 +348,7 @@ static int cmd_codecs_proc(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv,
ret = ERROR;
goto exit;
}
- else if(ret==0)
+ else if (ret==0)
{
break;
}
diff --git a/apps/nshlib/nsh_netcmds.c b/apps/nshlib/nsh_netcmds.c
index 62c1d012a..ef43fe0f6 100644
--- a/apps/nshlib/nsh_netcmds.c
+++ b/apps/nshlib/nsh_netcmds.c
@@ -644,7 +644,7 @@ int cmd_ifconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
badarg = true;
}
}
- else if(!strcmp(tmp, "netmask"))
+ else if (!strcmp(tmp, "netmask"))
{
if (argc-1 >= i+1)
{
diff --git a/apps/system/install/install.c b/apps/system/install/install.c
index fd14b7a6f..cc60df7c3 100644
--- a/apps/system/install/install.c
+++ b/apps/system/install/install.c
@@ -118,7 +118,7 @@ static int install_getstartpage(int startpage, int pagemargin, int desiredsize)
maxlen = 0;
}
- if(stpage < startpage)
+ if (stpage < startpage)
{
stpage = startpage;
}