Merge pull request #11947 from hugueskamba/hk-fix-minimal-console

Minimal Console: Fix syntax errors
pull/11958/head
Martin Kojtal 2019-11-27 11:30:08 +01:00 committed by GitHub
commit 394cf7a0eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -744,7 +744,7 @@ extern "C" ssize_t write(int fildes, const void *buf, size_t length)
#if MBED_CONF_PLATFORM_STDIO_MINIMAL_CONSOLE_ONLY
if (fildes != STDOUT_FILENO && fildes != STDERR_FILENO) {
errno = EBADF;
return -1
return -1;
}
const unsigned char *buffer = static_cast<const unsigned char *>(buf);
@ -874,7 +874,7 @@ extern "C" ssize_t read(int fildes, void *buf, size_t length)
unsigned char *buffer = static_cast<unsigned char *>(buf);
buf[0] = minimal_console_getc();
buffer[0] = minimal_console_getc();
ssize_t ret = 1;