From cb6332462ef3ec2375542783df453e8301d7f185 Mon Sep 17 00:00:00 2001 From: octo Date: Tue, 13 Dec 2005 21:53:55 +0000 Subject: [PATCH] Changed return type of `plugin_exists' from `bool' to `int' since `bool' appears not to be an elementar data type. --- src/plugin.c | 6 +++--- src/plugin.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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), -- 2.30.2