diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-30 17:02:06 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-30 17:02:06 +0000 |
commit | 88483db112b15569aad4898d30a8ab7ea4deb96b (patch) | |
tree | 1da1ec9a5cab6d6b3793fec0edc5728b71743a0e /libc/inet/getnetent.c | |
parent | f5c05b8c3da2fc70133778daf099b00c5d090ff9 (diff) |
make regex_old.c, ruserpass.c use __uc_malloc,
replace "buf = malloc(BUFSIZ); if (!buf) abort();" by __uc_malloc
elsewhere.
With last 7 patches together uclibc has 3k of static data total
with fairly big .config and with 2k being used for 2 x BUFSIZ stdio buffer:
text data bss dec hex filename
114 132 2048 2294 8f6 _stdio.o (ex lib/libc.a)
total data 593
total bss 3062
Diffstat (limited to 'libc/inet/getnetent.c')
-rw-r--r-- | libc/inet/getnetent.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/inet/getnetent.c b/libc/inet/getnetent.c index 58e679070..99d87a3df 100644 --- a/libc/inet/getnetent.c +++ b/libc/inet/getnetent.c @@ -111,9 +111,7 @@ struct netent *getnetent(void) again: if (!line) { - line = malloc(BUFSIZ + 1); - if (!line) - abort(); + line = __uc_malloc(BUFSIZ + 1); } p = fgets(line, BUFSIZ, netf); |