Fixed coding std violations in nsh_fsutils.h
This commit is contained in:
parent
0d74608b2c
commit
76e58d9e55
@ -129,7 +129,8 @@ int nsh_catfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
nsh_error(vtbl, g_fmtcmdfailed, cmd, "read", NSH_ERRNO_OF(errval));
|
nsh_error(vtbl, g_fmtcmdfailed, cmd, "read",
|
||||||
|
NSH_ERRNO_OF(errval));
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = ERROR;
|
ret = ERROR;
|
||||||
@ -144,7 +145,8 @@ int nsh_catfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
|
|||||||
|
|
||||||
while (nbyteswritten < nbytesread)
|
while (nbyteswritten < nbytesread)
|
||||||
{
|
{
|
||||||
ssize_t n = nsh_write(vtbl, buffer + nbyteswritten, nbytesread - nbyteswritten);
|
ssize_t n = nsh_write(vtbl, buffer + nbyteswritten,
|
||||||
|
nbytesread - nbyteswritten);
|
||||||
if (n < 0)
|
if (n < 0)
|
||||||
{
|
{
|
||||||
int errcode = errno;
|
int errcode = errno;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user