From: Florian Forster Date: Sat, 6 Nov 2010 07:53:02 +0000 (+0100) Subject: amqp plugin: Rename the "shutdown" function to avoid problems with shutdown(2). X-Git-Tag: collectd-5.0.0-beta0~28^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d820ed4de7563bea066c80d3f172fdbe0f524304;p=collectd.git amqp plugin: Rename the "shutdown" function to avoid problems with shutdown(2). --- diff --git a/src/amqp.c b/src/amqp.c index 0d3899ea..c301dca8 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -399,7 +399,7 @@ static int camqp_connect (camqp_config_t *conf) /* {{{ */ return (0); } /* }}} int camqp_connect */ -static int shutdown (void) /* {{{ */ +static int camqp_shutdown (void) /* {{{ */ { size_t i; @@ -422,7 +422,7 @@ static int shutdown (void) /* {{{ */ DEBUG ("amqp plugin: All subscriber threads exited."); return (0); -} /* }}} int shutdown */ +} /* }}} int camqp_shutdown */ /* * Subscribing code @@ -932,7 +932,7 @@ static int camqp_config (oconfig_item_t *ci) /* {{{ */ void module_register (void) { plugin_register_complex_config ("amqp", camqp_config); - plugin_register_shutdown ("amqp", shutdown); + plugin_register_shutdown ("amqp", camqp_shutdown); } /* void module_register */ /* vim: set sw=4 sts=4 et fdm=marker : */