summaryrefslogtreecommitdiff
path: root/libc/inet/getproto.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds_cb1@t-online.de>2008-06-12 10:31:17 +0000
committerBernd Schmidt <bernds_cb1@t-online.de>2008-06-12 10:31:17 +0000
commite433ede08ba069f5100737e22eb8627187ae8f92 (patch)
tree4c4a73520537a733eed495c342951a7c0112cd51 /libc/inet/getproto.c
parent74d1d18f6bc7140f9bc5568b939870d8ec89b9ad (diff)
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.
Diffstat (limited to 'libc/inet/getproto.c')
-rw-r--r--libc/inet/getproto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/inet/getproto.c b/libc/inet/getproto.c
index 7f3b4e30f..1e3e843f5 100644
--- a/libc/inet/getproto.c
+++ b/libc/inet/getproto.c
@@ -59,7 +59,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <malloc.h>
#include <errno.h>
#include <unistd.h>
@@ -71,7 +70,6 @@ libc_hidden_proto(rewind)
libc_hidden_proto(fgets)
libc_hidden_proto(fclose)
libc_hidden_proto(abort)
-libc_hidden_proto(__uc_malloc)
#include <bits/uClibc_mutex.h>
__UCLIBC_MUTEX_STATIC(mylock, PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP);
@@ -89,7 +87,9 @@ static smallint proto_stayopen;
static void __initbuf(void)
{
if (!static_aliases) {
- static_aliases = __uc_malloc(SBUFSIZE);
+ static_aliases = malloc(SBUFSIZE);
+ if (!static_aliases)
+ abort();
}
}