[Nut-upsdev] (no subject)

Arjen de Korte nut+devel at de-korte.org
Mon Nov 13 12:14:01 CET 2006


Browsing through the newhidups.c code, I stumbled across the following:

/* master list of avaiable subdrivers */
static subdriver_t *subdriver_list[] = {
#ifndef SHUT_MODE
	&generic_subdriver,
#endif
	&mge_subdriver,
#ifndef SHUT_MODE
	&apc_subdriver,
	&belkin_subdriver,
	&tripplite_subdriver,
	NULL
#endif
};

Shouldn't the 'NULL' terminator be outside the condition? If SHUT_MODE is
defined, the list will not be NULL terminated.

Regards,
Arjen
-- 
Eindhoven - The Netherlands
Key fingerprint - 66 4E 03 2C 9D B5 CB 9B  7A FE 7E C1 EE 88 BC 57




More information about the Nut-upsdev mailing list