Re: [U-Boot] [PATCHv2 6/8] mkenvimage: Use mmap() when reading from a regular file

2012-01-07 Thread Mike Frysinger
On Thursday 05 January 2012 13:44:57 David Wagner wrote: --- a/tools/mkenvimage.c +++ b/tools/mkenvimage.c filesize = txt_file_stat.st_size; - /* Read the raw input file and transform it */ - filebuf = malloc(sizeof(*envptr) * filesize); -

[U-Boot] [PATCHv2 6/8] mkenvimage: Use mmap() when reading from a regular file

2012-01-05 Thread David Wagner
Signed-off-by: David Wagner david.wag...@free-electrons.com --- tools/mkenvimage.c | 15 +-- 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c index 6db2b21..58f1d0b 100644 --- a/tools/mkenvimage.c +++ b/tools/mkenvimage.c @@