configfile.c: Include more than one files in lexicographical order.
authorSebastian Harl <sh@tokkee.org>
Thu, 20 Mar 2008 12:22:15 +0000 (13:22 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Sat, 22 Mar 2008 08:34:26 +0000 (09:34 +0100)
commit4fe00def1a70d2bd73dbcd912da2becef459d00e
tree15061328fd251306710cfe1588b0aa1cdb6c39e8
parent91963baa3a553d401a7decedaf5d413e08e2ae99
configfile.c: Include more than one files in lexicographical order.

Using qsort() and strcmp() the list of files (after reading the contents
of a directory or expanding globs) is sorted before inclusion. As the
order of options in the config file matters this is more convenient.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/collectd.conf.pod
src/configfile.c