diff options
Diffstat (limited to 'src/core/servers-setup.h')
-rw-r--r-- | src/core/servers-setup.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/servers-setup.h b/src/core/servers-setup.h index 247189ff..4b22c542 100644 --- a/src/core/servers-setup.h +++ b/src/core/servers-setup.h @@ -3,12 +3,11 @@ #include "servers.h" -#define IS_SERVER_SETUP(server) \ - ((server) != NULL && \ - module_find_id("SERVER SETUP", (server)->type) != -1) - #define SERVER_SETUP(server) \ - (IS_SERVER_SETUP(server) ? (SERVER_SETUP_REC *) (server) : NULL) + MODULE_CHECK_CAST(server, SERVER_SETUP_REC, type, "SERVER SETUP") + +#define IS_SERVER_SETUP(server) \ + (SERVER_SETUP(server) ? TRUE : FALSE) /* servers */ typedef struct { |