From: octo Date: Tue, 13 Dec 2005 21:53:55 +0000 (+0000) Subject: Changed return type of `plugin_exists' from `bool' to `int' since `bool' appears... X-Git-Tag: collectd-3.5.0~7^2~9 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=cb6332462ef3ec2375542783df453e8301d7f185;p=collectd.git Changed return type of `plugin_exists' from `bool' to `int' since `bool' appears not to be an elementar data type. --- diff --git a/src/plugin.c b/src/plugin.c index a249cf76..9bc02abe 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -77,12 +77,12 @@ plugin_t *plugin_search (char *type) * Returns true if the plugin is loaded (i.e. `exists') and false otherwise. * This is used in `configfile.c' to skip sections that are not needed.. */ -bool plugin_exists (char *type) +int plugin_exists (char *type) { if (plugin_search (type) == NULL) - return (false); + return (0); else - return (true); + return (1); } /* diff --git a/src/plugin.h b/src/plugin.h index e14376e5..8dd56ae3 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -27,7 +27,7 @@ int plugin_load_all (char *dir); void plugin_init_all (void); void plugin_read_all (void); -bool plugin_exists (char *type); +int plugin_exists (char *type); void plugin_register (char *type, void (*init) (void), void (*read) (void),