mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-02 04:39:01 +00:00
More ccpcheck-related fixes
This commit is contained in:
parent
e825afe3eb
commit
b2c867f214
2 changed files with 2 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ void *select_listener(pthread_addr_t pvarg)
|
|||
}
|
||||
|
||||
buffer[nbytes] = '\0';
|
||||
printf("select_listener: Read '%s' (%d bytes)\n", buffer, nbytes);
|
||||
printf("select_listener: Read '%s' (%ld bytes)\n", buffer, (long)nbytes);
|
||||
}
|
||||
|
||||
timeout = false;
|
||||
|
|
|
|||
|
|
@ -1230,6 +1230,7 @@ static bool vi_savetext(FAR struct vi_s *vi, FAR const char *filename,
|
|||
/* Report the error (or partial write). EINTR is not handled. */
|
||||
|
||||
vi_error(vi, g_fmtcmdfail, "fwrite", errno);
|
||||
(void)fclose(stream);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue