From: Theo Buehler Subject: Re: scandir.c whitespace fixes To: tech Date: Sun, 14 Apr 2024 12:15:18 +0100 On Sun, Apr 14, 2024 at 01:13:07PM +0200, Florian Obser wrote: > this was hurting my eyes. OK? let's see how many oks you get before you land the diff. here's one. > > diff --git scandir.c scandir.c > index 870dc0a39ad..9782a3d9117 100644 > --- scandir.c > +++ scandir.c > @@ -75,7 +75,7 @@ scandir(const char *dirname, struct dirent ***namelist, > > /* > * estimate the array size by taking the size of the directory file > - * and dividing it by a multiple of the minimum size entry. > + * and dividing it by a multiple of the minimum size entry. > */ > arraysz = MAXIMUM(stb.st_size / 24, 16); > if (arraysz > SIZE_MAX / sizeof(struct dirent *)) { > @@ -96,7 +96,7 @@ scandir(const char *dirname, struct dirent ***namelist, > */ > if (nitems >= arraysz) { > struct dirent **nnames; > - > + > if (fstat(dirp->dd_fd, &stb) == -1) > goto fail; > > > -- > In my defence, I have been left unsupervised. >