From f3745ea489c5ef454e2ce68926c5f39f5b30f240 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 19 Apr 2008 19:32:08 +0000 Subject: libbb: introduce xmalloc_xopen_read_close and use where appropriate instead of xmalloc_open_read_close. function old new delta xmalloc_xopen_read_close - 34 +34 xmalloc_open_read_close 163 171 +8 passwd_main 1070 1074 +4 rexecve 254 257 +3 handle_incoming_and_exit 2657 2659 +2 parse_command 1509 1510 +1 buffer_fill_and_print 76 73 -3 evaltreenr 599 589 -10 evaltree 599 589 -10 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/3 up/down: 52/-23) Total: 29 bytes --- util-linux/readprofile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util-linux') diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c index e25d07d..cac5fa4 100644 --- a/util-linux/readprofile.c +++ b/util-linux/readprofile.c @@ -109,9 +109,9 @@ int readprofile_main(int argc ATTRIBUTE_UNUSED, char **argv) * Use an fd for the profiling buffer, to skip stdio overhead */ len = MAXINT(ssize_t); - buf = xmalloc_open_read_close(proFile, &len); + buf = xmalloc_xopen_read_close(proFile, &len); if (!optNative) { - int entries = len/sizeof(*buf); + int entries = len / sizeof(*buf); int big = 0, small = 0, i; unsigned *p; -- cgit v1.1