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.orig    2016-12-15 12:52:33.181859142 +0000
+++ t.c 2016-12-15 12:55:08.939521298 +0000
@@ -1,6 +1,8 @@
        #define _SVID_SOURCE
        /* print files in current directory in reverse order */
        #include <dirent.h>
+       #include <stdio.h>
+       #include <stdlib.h>
 
        int
        main(void)
@@ -18,4 +20,5 @@
                }
                free(namelist);
            }
+           return 0;
        }


-- 
Ian Jackson <[email protected]>   These opinions are my own.

If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.

Reply via email to