From e433ede08ba069f5100737e22eb8627187ae8f92 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Thu, 12 Jun 2008 10:31:17 +0000 Subject: Revert revision 19347, plus libc_hidden_proto for __uc_malloc. Some of the code is functionally identical before and after, but for now I'm just mechanically reverting the entire mess. --- libc/misc/ttyent/getttyent.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libc/misc/ttyent') diff --git a/libc/misc/ttyent/getttyent.c b/libc/misc/ttyent/getttyent.c index 7ec228514..b43422ddc 100644 --- a/libc/misc/ttyent/getttyent.c +++ b/libc/misc/ttyent/getttyent.c @@ -34,7 +34,6 @@ #include #include #include -#include #ifdef __UCLIBC_HAS_THREADS__ #include #endif @@ -55,7 +54,6 @@ libc_hidden_proto(__ctype_b_loc) #elif defined __UCLIBC_HAS_CTYPE_TABLES__ libc_hidden_proto(__ctype_b) #endif -libc_hidden_proto(__uc_malloc) static char zapchar; static FILE *tf; @@ -134,7 +132,9 @@ struct ttyent * getttyent(void) return (NULL); if (!line) { - line = __uc_malloc(BUFSIZ); + line = malloc(BUFSIZ); + if (!line) + abort(); } __STDIO_ALWAYS_THREADLOCK(tf); -- cgit v1.2.3