tests/slip: Use libc putchar/getchar instead of wrappers

Fixes warnings about wrong function signature.
This commit is contained in:
Joakim Gebart 2015-07-06 13:25:45 +02:00
parent b318d2607c
commit adc8afb34f

View File

@ -30,22 +30,6 @@
*/ */
#define SHELL_BUFSIZE (64U) #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?! * @brief Maybe you are a golfer?!
*/ */
@ -69,7 +53,7 @@ int main(void)
/* start the shell */ /* start the shell */
puts("Initialization OK, starting shell now"); 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); shell_run(&shell);
return 0; return 0;