From 7e5c65d521e39cb463e5ad5838284da7d100cf05 Mon Sep 17 00:00:00 2001 From: Jan Van Winkel Date: Fri, 23 Aug 2019 01:19:47 +0200 Subject: [PATCH] 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 --- drivers/serial/uart_native_posix.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/serial/uart_native_posix.c b/drivers/serial/uart_native_posix.c index 5d4eed73aa2..87b3c19acf0 100644 --- a/drivers/serial/uart_native_posix.c +++ b/drivers/serial/uart_native_posix.c @@ -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