[Nagiosplug-devel] thoughts on regexp using plugins

sean finney seanius at seanius.net
Thu Mar 23 15:26:06 CET 2006


On Fri, Mar 24, 2006 at 12:21:23AM +0100, Andreas Ericsson wrote:
> static void no_regex_support(void)
> {
> 	die("Sorry. regex support not available on this platform\n");
> }
> 
> int regcomp(regex_t *a, const char *b, int flags)
> {
> 	no_regex_support();
> 	return 0; /* musn't upset the compiler */
> }

hah, okay.  point taken :)


	sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://nagios-plugins.org/archive/devel/attachments/20060323/04ac5340/attachment.sig>


More information about the Devel mailing list