X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fcollectd.c;h=2d161aad6062815d4bdf220a7f30c02319e33075;hb=56688f815d42e6aa3e52b5c419ef643a8ebae712;hp=70223b7dde98d58ac872a4b5a69efdfea83d447a;hpb=d2914ae1474b2d42120c65c3f48be0be7affcb4e;p=collectd.git diff --git a/src/collectd.c b/src/collectd.c index 70223b7d..2d161aad 100644 --- a/src/collectd.c +++ b/src/collectd.c @@ -29,7 +29,6 @@ #include "plugin.h" #include "configfile.h" -#include "types_list.h" /* * Global variables @@ -216,7 +215,7 @@ static void update_kstat (void) /* TODO * Remove all settings but `-f' and `-C' */ -static void exit_usage (char *name) +static void exit_usage (void) { printf ("Usage: "PACKAGE" [OPTIONS]\n\n" @@ -260,7 +259,6 @@ static int do_init (void) } #endif - read_types_list (); plugin_init_all (); return (0); @@ -290,7 +288,7 @@ static int do_loop (void) #endif /* Issue all plugins */ - plugin_read_all (&loop); + plugin_read_all (); if (gettimeofday (&tv_now, NULL) < 0) { @@ -406,7 +404,7 @@ int main (int argc, char **argv) #endif /* COLLECT_DAEMON */ case 'h': default: - exit_usage (argv[0]); + exit_usage (); } /* switch (c) */ } /* while (1) */