[PATCH] find: implement -empty

walter harms wharms at bfs.de
Thu Sep 12 07:41:51 UTC 2019



Am 11.09.2019 17:25, schrieb Aaro Koskinen:
> Hi,
> 
> On Wed, Sep 11, 2019 at 09:46:45AM +0200, walter harms wrote:
>> is seems possible to simply that a bit (untested version):
>>
>> if ( ! S_ISDIR(statbuf->st_mode))
>>        return S_ISREG(statbuf->st_mode) && !statbuf->st_size;
>>
>> DIR *dir;
> 
> Not sure if this is allowed by current busybox coding style:
> 
> findutils/find.c:844:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
>   DIR *dir;
> 
> A.
> 

Hi,
same is true for struct dirent *dent;char n = 0;
		
It was only c&p. i trust you that you can fix that if interested.

re,
 wh


More information about the busybox mailing list