[Nagiosplug-devel] [ nagiosplug-Patches-1211973 ] plugins/common.h sanity fixes

SourceForge.net noreply at sourceforge.net
Tue May 31 05:45:12 CEST 2005


Patches item #1211973, was opened at 2005-05-31 14:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1211973&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Enhancement
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Andreas Ericsson (ageric)
Assigned to: Nobody/Anonymous (nobody)
Summary: plugins/common.h sanity fixes

Initial Comment:
Some small sanity-fixes to plugins/common.h (also sent
to nagiosplug-devel@), 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.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1211973&group_id=29880




More information about the Devel mailing list