[Nagios-devel] [PATCH] fix implicit declaration of function

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] [PATCH] fix implicit declaration of function

Post by Guest »


nebmods.c: In function 'neb_unload_module':
nebmods.c:326: warning: implicit declaration of function 'neb_deregister_module_callbacks'

Either move the function before neb_unload_module and make it static,
or put the declaration in a header file.

---
include/nebcallbacks.h | 1 +
1 file changed, 1 insertion(+)

Index: nagios-2.5/include/nebcallbacks.h
===================================================================
--- nagios-2.5.orig/include/nebcallbacks.h
+++ nagios-2.5/include/nebcallbacks.h
@@ -76,6 +76,7 @@

int neb_register_callback(int callback_type, void *mod_handle, int priority, int (*callback_func)(int,void *));
int neb_deregister_callback(int callback_type, int (*callback_func)(int,void *));
+int neb_deregister_module_callbacks(nebmodule *mod);

#ifdef __cplusplus
}





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked