From adc8afb34f9f6de0e03537a5c88637a36780de17 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 13:25:45 +0200 Subject: [PATCH] tests/slip: Use libc putchar/getchar instead of wrappers Fixes warnings about wrong function signature. --- tests/slip/main.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/tests/slip/main.c b/tests/slip/main.c index 38a5363828..f137b1bb90 100644 --- a/tests/slip/main.c +++ b/tests/slip/main.c @@ -30,22 +30,6 @@ */ #define SHELL_BUFSIZE (64U) -/** - * @brief Read chars from STDIO - */ -int shell_read(void) -{ - return (int)getchar(); -} - -/** - * @brief Write chars to STDIO - */ -void shell_put(int c) -{ - putchar((char)c); -} - /** * @brief Maybe you are a golfer?! */ @@ -69,7 +53,7 @@ int main(void) /* start the shell */ puts("Initialization OK, starting shell now"); - shell_init(&shell, NULL, SHELL_BUFSIZE, shell_read, shell_put); + shell_init(&shell, NULL, SHELL_BUFSIZE, getchar, putchar); shell_run(&shell); return 0;