mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Changes to get PX4 config to build. Also some warning removal
This commit is contained in:
@@ -97,5 +97,3 @@ size_t fread(FAR void *ptr, size_t size, size_t n_items, FAR FILE *stream)
|
||||
}
|
||||
return items_read;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@
|
||||
#include <assert.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include "lib_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
@@ -142,7 +144,7 @@ static void consume_eol(FILE *stream, bool consume)
|
||||
FAR char *lib_fgets(FAR char *buf, size_t buflen, FILE *stream,
|
||||
bool keepnl, bool consume)
|
||||
{
|
||||
int nch = 0;
|
||||
size_t nch = 0;
|
||||
|
||||
/* Sanity checks */
|
||||
|
||||
|
||||
@@ -204,7 +204,7 @@ ssize_t lib_fread(FAR void *ptr, size_t count, FAR FILE *stream)
|
||||
|
||||
/* Were all of the requested bytes read? */
|
||||
|
||||
if (bytes_read < count)
|
||||
if ((size_t)bytes_read < count)
|
||||
{
|
||||
/* No. We must be at the end of file. */
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
|
||||
@@ -83,7 +83,7 @@ static void stdoutstream_putc(FAR struct lib_outstream_s *this, int ch)
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_STDIO_LINEBUFFER) && CONFIG_STDIO_BUFFER_SIZE > 0
|
||||
int stdoutstream_flush(FAR struct lib_outstream_s *this)
|
||||
static int stdoutstream_flush(FAR struct lib_outstream_s *this)
|
||||
{
|
||||
FAR struct lib_stdoutstream_s *sthis = (FAR struct lib_stdoutstream_s *)this;
|
||||
return lib_fflush(sthis->stream, true);
|
||||
|
||||
Reference in New Issue
Block a user