summaryrefslogtreecommitdiff
path: root/n/avr/modules/uart/uart.host.c
diff options
context:
space:
mode:
Diffstat (limited to 'n/avr/modules/uart/uart.host.c')
-rw-r--r--n/avr/modules/uart/uart.host.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/n/avr/modules/uart/uart.host.c b/n/avr/modules/uart/uart.host.c
index d6aa848..9a335b2 100644
--- a/n/avr/modules/uart/uart.host.c
+++ b/n/avr/modules/uart/uart.host.c
@@ -31,7 +31,6 @@
#if AC_UART (PORT) != -1
-#include <assert.h>
#include <stdlib.h>
#include <sys/types.h>
#include <errno.h>
@@ -83,10 +82,12 @@ void
uart_init (void)
{
#ifdef DRIVER_STDIO
+ int r;
# define uart_pt_fd_in 0
# define uart_pt_fd_out 1
/* Always use line buffering. */
- assert (setvbuf (stdout, 0, _IOLBF, BUFSIZ) == 0);
+ r = setvbuf (stdout, 0, _IOLBF, BUFSIZ);
+ assert (r == 0);
#else
# define uart_pt_fd_in uart_pt_fd
# define uart_pt_fd_out uart_pt_fd