[LTP] [PATCH v1] Rewrite process_vm_readv03.c test with new LTP API
Andrea Cervesato
andrea.cervesato@suse.com
Thu Jan 27 10:45:40 CET 2022
Hi!
that is definetly an error I made during patch re-write. Gonna fix it
On 1/27/22 10:38, Jan Stancek wrote:
> On Wed, Jan 26, 2022 at 3:05 PM Andrea Cervesato
> <andrea.cervesato@suse.de> wrote:
> <snip>
>
>> -static void child_alloc(int *bufsz_arr)
>> +static void child_alloc(const int *sizes, int nr_iovecs)
>> {
>> char **foo;
>> int i, j;
>> - char buf[BUFSIZ];
>> long count;
>>
>> - foo = SAFE_MALLOC(tst_exit, nr_iovecs * sizeof(char *));
>> + foo = SAFE_MALLOC(nr_iovecs * sizeof(int *));
> Overall conversion looks good to me, but why this change from "char *"
> to "int *"
> when foo is char **?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20220127/85508241/attachment.htm>
More information about the ltp
mailing list