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/mntent/mntent.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libc/misc/mntent') diff --git a/libc/misc/mntent/mntent.c b/libc/misc/mntent/mntent.c index aaf0b68e6..c3367955c 100644 --- a/libc/misc/mntent/mntent.c +++ b/libc/misc/mntent/mntent.c @@ -7,7 +7,6 @@ #include #include #include -#include #include #include @@ -26,7 +25,6 @@ libc_hidden_proto(fseek) libc_hidden_proto(fgets) libc_hidden_proto(abort) libc_hidden_proto(fprintf) -libc_hidden_proto(__uc_malloc) /* Reentrant version of getmntent. */ struct mntent *getmntent_r (FILE *filep, @@ -86,7 +84,9 @@ struct mntent *getmntent(FILE * filep) __UCLIBC_MUTEX_LOCK(mylock); if (!buff) { - buff = __uc_malloc(BUFSIZ); + buff = malloc(BUFSIZ); + if (!buff) + abort(); } tmp = getmntent_r(filep, &mnt, buff, BUFSIZ); -- cgit v1.2.3