[Nagiosplug-devel] Nagiosplugins 1.4.11 on HP UX

Ton Voon ton.voon at altinity.com
Mon Feb 11 22:28:44 CET 2008


On 11 Feb 2008, at 15:47, Holger Weiss wrote:

> * Matthias.Broenner at systemagmbh.de [2008-02-11 15:28]:
>> cc: "utils_base.c", line 108: error 1649: Illegal integer-pointer  
>> combination for >.
>> cc: "utils_base.c", line 108: error 1563: Expression in if must be  
>> scalar.
>
> Ugh, that's indeed broken.  A quick and dirty workaround for you  
> would be to
> delete the lines 108-111 in utils_base.c:
>
>  if (*my_thresholds > 0) {	/* Not sure why, but sometimes could be  
> -1 */
>  	/* printf("Freeing here: %d\n", *my_thresholds); */
>  	free(*my_thresholds);
>  }
>
> Removing these lines creates a minor memory leak, but that won't be a
> problem in practice.  A proper fix will require a little more work.

Ah! That's my ugly code there :(

What's a proper fix? My pointer knowledge is pretty poor...

Ton

http://www.altinity.com
UK: +44 (0)870 787 9243
US: +1 866 879 9184
Fax: +44 (0)845 280 1725
Skype: tonvoon





More information about the Devel mailing list