utils_cmd_flush.c: Simplified / improved option parsing.
authorSebastian Harl <sh@tokkee.org>
Tue, 25 Mar 2008 14:53:45 +0000 (15:53 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 26 Mar 2008 08:22:10 +0000 (09:22 +0100)
commit056474c91e21ff051d2851f7a07e4f83b7e6d74f
tree606b085e072f4bb36b1e2502dc9ebbd32f21a8bc
parentadc7046fad284f828118b7190b267db0a4618431
utils_cmd_flush.c: Simplified / improved option parsing.

Instead of parsing all options before doing any work, each option is now
handled right after it has been parsed. This has the following benefits:

 * No need to allocate and construct any data structures.
 * The timeout option may be used multiple times now, only affecting any
   plugins listed after this.

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