uart: native_posix: Moved declaration of native_uart_status

Move declaration of struct native_uart_status before definition of
a variable of its type

Signed-off-by: Jan Van Winkel <jan.van_winkel@dxplore.eu>
This commit is contained in:
Jan Van Winkel 2019-08-23 01:19:47 +02:00 committed by Alberto Escolar
commit 7e5c65d521

View file

@ -45,6 +45,11 @@ static bool auto_attach;
static const char default_cmd[] = CONFIG_NATIVE_UART_AUTOATTACH_DEFAULT_CMD;
static char *auto_attach_cmd;
struct native_uart_status {
int out_fd; /* File descriptor used for output */
int in_fd; /* File descriptor used for input */
};
static struct native_uart_status native_uart_status_0;
static struct uart_driver_api np_uart_driver_api_0 = {
@ -61,11 +66,6 @@ static struct uart_driver_api np_uart_driver_api_1 = {
};
#endif /* CONFIG_UART_NATIVE_POSIX_PORT_1_ENABLE */
struct native_uart_status {
int out_fd; /* File descriptor used for output */
int in_fd; /* File descriptor used for input */
};
#define ERROR posix_print_error_and_exit
#define WARN posix_print_warning