On Sun, May 01, 2011 at 04:21:27PM +0200, Ariane van der Steldt wrote: > Hi, > > du.c doesn't define its tree prototypes. However, if I understand man tree, > it should.
The idea being that you're defining the rb functions without first prototyping them in this case RB_GENERATE_STATIC would probably be better since it is only needed within the one file. > > Ok? > -- > Ariane > > > Index: du.c > =================================================================== > RCS file: /cvs/src/usr.bin/du/du.c,v > retrieving revision 1.23 > diff -u -d -p -r1.23 du.c > --- du.c 27 Apr 2011 07:52:11 -0000 1.23 > +++ du.c 1 May 2011 14:10:13 -0000 > @@ -232,6 +232,7 @@ links_cmp(struct links_entry *e1, struct > > RB_HEAD(ltree, links_entry) links = RB_INITIALIZER(&links); > > +RB_PROTOTYPE(ltree, links_entry, entry, links_cmp); > RB_GENERATE(ltree, links_entry, entry, links_cmp); > -- Vital papers will demonstrate their vitality by spontaneously moving from where you left them to where you can't find them.
