Prototypes in utils.h

Andreas Ericsson ae at op5.se
Sat Dec 4 16:42:50 CET 2004


I've started auditing the plugins and I've got a couple of questions.

Function arguments are often named in the prototypes contained in 
utils.h (but not always). Is there a reason for that? Portability 
springs to mind, but utils.c makes heavy use of asprintf() which is a 
GNU extension.

On a side-note, there's no prototype for usage4() in utils.h

The attached patch takes care of both issues.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nagiosplug-utils_prototypes.diff
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20041204/000f53b8/attachment.ksh>


More information about the Developers mailing list