[Nagiosplug-devel] common.h sanity fixes

Andreas Ericsson ae at op5.se
Tue May 31 05:48:18 CEST 2005


The attached patch (also submitted to the tracker) provides some small 
sanity-fixes to plugins/common.h, notably;

* protection from being included several times.
* defining __attribute__ right at the top, so GNU header files can be 
imported fairly straight to non-GNU archs (this requires other magic as 
well, but that's beyond the scope of our code), and so that 
__attributes__ can be declared for prototypes residing in common.h.
* Making default values macros instead of included in enum lists. This 
has the benefit of other plugins being able to test for their state of 
definedness and some PTE address range benefits on weird architectures.

Apply with patch -p1.

-- 
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-common_h-sanity.diff
URL: <http://nagios-plugins.org/archive/devel/attachments/20050531/8ad3df2a/attachment.ksh>


More information about the Devel mailing list