diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-03-15 15:45:03 +0100 |
---|---|---|
committer | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-03-22 15:22:09 +0100 |
commit | d1d6b53b713a2b7c2c25685268fa932d28a4b4c0 (patch) | |
tree | c76c68c280f406bbb3cbe9d1633537b8d33125e6 /clients | |
parent | f2a224a584095057d8617683cd5e9a2e2b7a7cb2 (diff) | |
download | SLOF-d1d6b53b713a2b7c2c25685268fa932d28a4b4c0.zip SLOF-d1d6b53b713a2b7c2c25685268fa932d28a4b4c0.tar.gz SLOF-d1d6b53b713a2b7c2c25685268fa932d28a4b4c0.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>
Diffstat (limited to 'clients')
-rw-r--r-- | clients/net-snk/libc/io.c | 11 |
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; -} |