diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-01 19:59:37 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-01 19:59:37 +0200 |
commit | 899ae5337acc2d24edcd64e570adfc5f3c1a8a8a (patch) | |
tree | 9ec3de6ffce8df5f82d1428d595ffe4028905a3d /networking | |
parent | e2afae6303e871a31a061d03359cfcd5dd86c088 (diff) | |
download | busybox-w32-899ae5337acc2d24edcd64e570adfc5f3c1a8a8a.tar.gz busybox-w32-899ae5337acc2d24edcd64e570adfc5f3c1a8a8a.tar.bz2 busybox-w32-899ae5337acc2d24edcd64e570adfc5f3c1a8a8a.zip |
libbb: new function bb_die_memory_exhausted
function old new delta
bb_die_memory_exhausted - 10 +10
xstrdup 28 23 -5
xsetenv 27 22 -5
xrealloc 32 27 -5
xputenv 22 17 -5
xmalloc 30 25 -5
xfdopen_helper 40 35 -5
xasprintf 44 39 -5
wget_main 2387 2382 -5
open_socket 54 49 -5
glob_brace 419 414 -5
bb_get_chunk_from_file 146 141 -5
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/11 up/down: 10/-55) Total: -45 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/wget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/wget.c b/networking/wget.c index 8969310a4..12ee29a6f 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -409,7 +409,7 @@ static FILE *open_socket(len_and_sockaddr *lsa) | |||
409 | /* hopefully it understands what ESPIPE means... */ | 409 | /* hopefully it understands what ESPIPE means... */ |
410 | fp = fdopen(fd, "r+"); | 410 | fp = fdopen(fd, "r+"); |
411 | if (!fp) | 411 | if (!fp) |
412 | bb_perror_msg_and_die(bb_msg_memory_exhausted); | 412 | bb_die_memory_exhausted(); |
413 | 413 | ||
414 | return fp; | 414 | return fp; |
415 | } | 415 | } |
@@ -1114,7 +1114,7 @@ static void download_one_url(const char *url) | |||
1114 | # endif | 1114 | # endif |
1115 | sfp = fdopen(fd, "r+"); | 1115 | sfp = fdopen(fd, "r+"); |
1116 | if (!sfp) | 1116 | if (!sfp) |
1117 | bb_perror_msg_and_die(bb_msg_memory_exhausted); | 1117 | bb_die_memory_exhausted(); |
1118 | goto socket_opened; | 1118 | goto socket_opened; |
1119 | } | 1119 | } |
1120 | sfp = open_socket(lsa); | 1120 | sfp = open_socket(lsa); |