Re: [libvirt] [PATCH 05/24] tests: utils: Don't calculate file size in virTestLoadFile

2017-07-26 Thread Eric Blake
On 07/26/2017 05:00 AM, Peter Krempa wrote: > The callers don't use it so don't waste a strlen(). Also fix the comment > for the function. > --- > tests/testutils.c | 16 > 1 file changed, 12 insertions(+), 4 deletions(-) > > diff --git a/tests/testutils.c b/tests/testutils.c > i

[libvirt] [PATCH 05/24] tests: utils: Don't calculate file size in virTestLoadFile

2017-07-26 Thread Peter Krempa
The callers don't use it so don't waste a strlen(). Also fix the comment for the function. --- tests/testutils.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/testutils.c b/tests/testutils.c index ed01136a0..7f1c4672b 100644 --- a/tests/testutils.c +++