From d1d6b53b713a2b7c2c25685268fa932d28a4b4c0 Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Tue, 15 Mar 2011 15:45:03 +0100 Subject: Removed superfluous getchar() function. We've got a getchar() function already in our libc, so there is no need to define a second one within the net-snk code itself. Signed-off-by: --- clients/net-snk/libc/io.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/clients/net-snk/libc/io.c b/clients/net-snk/libc/io.c index 0e8b7e8..0364b9a 100644 --- a/clients/net-snk/libc/io.c +++ b/clients/net-snk/libc/io.c @@ -40,14 +40,3 @@ int close(int fd) { return syscall_1(_close_sc_nr,fd); } - -int -getchar(void) -{ - char buf; - int i; - - if((i = read (1, &buf, 1)) == 1) - return (int) buf; - return -1; -} -- cgit v1.1