On Fri, 14 Jul 2017 22:15:49 +0200, Jeremie Courreges-Anglas wrote: > the proposal in > > https://marc.info/?l=openbsd-misc&m=150001966325010&w=2 > > made me look at newsyslog and its manually linked lists. Here's a stab > at using TAILQs instead.
Oh good, now I don't have to do it ;-) I have a diff to make change errx() into warnx() + continue. > Notes: > - no attempt is made to free unused entries. > - "free(p)" below isn't enough to properly deallocate the memory used by > an entry anyway. > - when parsing the config file, we only add an entry to the list once we > know it is "good". > > I find this more readable. ok? OK millert@ - todd