aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Huth <thuth@linux.vnet.ibm.com>2011-03-15 15:45:03 +0100
committerThomas Huth <thuth@linux.vnet.ibm.com>2011-03-22 15:22:09 +0100
commitd1d6b53b713a2b7c2c25685268fa932d28a4b4c0 (patch)
treec76c68c280f406bbb3cbe9d1633537b8d33125e6
parentf2a224a584095057d8617683cd5e9a2e2b7a7cb2 (diff)
downloadSLOF-qemu-slof-20110323.zip
SLOF-qemu-slof-20110323.tar.gz
SLOF-qemu-slof-20110323.tar.bz2
Removed superfluous getchar() function.qemu-slof-20110323
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: <thuth@linux.vnet.ibm.com>
-rw-r--r--clients/net-snk/libc/io.c11
1 files changed, 0 insertions, 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;
-}