More ccpcheck-related fixes
This commit is contained in:
parent
e825afe3eb
commit
b2c867f214
@ -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…
Reference in New Issue
Block a user