[Nagios-devel] =?utf-8?b?W1BBVENIXSBuZWJtb2RzLmM6MTU1OjY6IHdhcm5p?=

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] =?utf-8?b?W1BBVENIXSBuZWJtb2RzLmM6MTU1OjY6IHdhcm5p?=

Post by Guest »

Hi,

As we are not checking the return of neb_load_all_modules() at nagios.c, we don't need to have a var to store the return of neb_load_module().

OK? Comments?


===================================================================
--- base/nebmods.c (revision 1973)
+++ base/nebmods.c (working copy)
@@ -152,10 +152,9 @@
/* load all modules */
int neb_load_all_modules(void) {
nebmodule *temp_module = NULL;
- int result = OK;

for(temp_module = neb_module_list; temp_module; temp_module = temp_module->next) {
- result = neb_load_module(temp_module);
+ neb_load_module(temp_module);
}

return OK;





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: ricardo.maraschini@opservices.com.br
Locked