More ccpcheck-related fixes

This commit is contained in:
Gregory Nutt 2014-11-25 17:28:22 -06:00
parent e825afe3eb
commit b2c867f214
2 changed files with 2 additions and 1 deletions

View File

@ -173,7 +173,7 @@ void *select_listener(pthread_addr_t pvarg)
} }
buffer[nbytes] = '\0'; 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; timeout = false;

View File

@ -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. */ /* Report the error (or partial write). EINTR is not handled. */
vi_error(vi, g_fmtcmdfail, "fwrite", errno); vi_error(vi, g_fmtcmdfail, "fwrite", errno);
(void)fclose(stream);
return false; return false;
} }