Bug#848231: bugs in scandir example program

2022-01-26 Thread Florian Ernst
On Thu, Dec 15, 2016 at 04:59:38PM +0100, Michael Kerrisk (man-pages) wrote: > [...] > All fixed now. This is the current code: > >#define _DEFAULT_SOURCE >#include >#include >#include > >int >main(void) >{ >struct dirent **na

Bug#848231: bugs in scandir example program

2016-12-15 Thread Ian Jackson
Michael Kerrisk (man-pages) writes ("Re: Bug#848231: bugs in scandir example program"): > We've misunderstood each other. Here's how I think i is: > > 1. You sent me a patch against a reasonably old version of the program > (pre 2012 upstream). > > 2. I

Bug#848231: bugs in scandir example program

2016-12-15 Thread Michael Kerrisk (man-pages)
On 15 December 2016 at 14:56, Ian Jackson wrote: > Michael Kerrisk (man-pages) writes ("Re: Bug#848231: bugs in scandir example > program"): >> tags 848231 fixed-upstream >> thanks > ...> >> On 15 December 2016 at 13:55, Ian Jackson >> >

Bug#848231: bugs in scandir example program

2016-12-15 Thread Ian Jackson
Michael Kerrisk (man-pages) writes ("Re: Bug#848231: bugs in scandir example program"): > tags 848231 fixed-upstream > thanks ...> > On 15 December 2016 at 13:55, Ian Jackson > > int > > main(void) > > @@ -18,4 +20,5 @@ > >

Bug#848231: bugs in scandir example program

2016-12-15 Thread Michael Kerrisk (man-pages)
tags 848231 fixed-upstream thanks On 15 December 2016 at 13:55, Ian Jackson wrote: > Package: manpages-dev > Version: 3.74-1 > Severity: minor > > I cut and pasted the example program from scandir(3) and found that it > had some bugs which caused compiler warnings with -Wall. Here is a > patch (

Bug#848231: bugs in scandir example program

2016-12-15 Thread Ian Jackson
Package: manpages-dev Version: 3.74-1 Severity: minor I cut and pasted the example program from scandir(3) and found that it had some bugs which caused compiler warnings with -Wall. Here is a patch (to the example program, not to the nroff) to fix them. Thanks, Ian. --- t.c.orig2016-12-15 1