[LTP] [PATCH 1/2] pathconf01: Convert to new API

Yang Xu (Fujitsu) xuyang2018.jy@fujitsu.com
Wed Nov 29 06:42:44 CET 2023


Hi,Xiao Yang

>On 2023/11/28 13:21, Xiao Yang wrote:
>> -/***************************************************************
>> - * cleanup() - performs all ONE TIME cleanup for this test at
>> - *        completion or premature exit.
>> - ***************************************************************/
>>    void cleanup(void)
>Hi Yang

>One more hint:
>static void cleanup(void) is better here.

>Best Regards,
>Xiao Yang

OK. I'll update it.

Best Regards,
Xiao Yang

>>    {
>> -    if (!lflag) {
>> -        tst_rmdir();
>> -        free(path);
>> -    }
>> +    free(path);


More information about the ltp mailing list