Hello Dan,

On 3/30/21 03:35, Dan Langille wrote:
> When building check_bacula with Bacula 11.0.2 I get:
> 
> ==>Entering directory 
> /wrkdirs/usr/ports/net-mgmt/nagios-check_bacula11/work/bacula-11.0.2/manpages
> /usr/bin/make -C 
> /wrkdirs/usr/ports/net-mgmt/nagios-check_bacula11/work/bacula-11.0.2/examples/nagios/check_bacula
> Compiling check_bacula.c
> check_bacula.c:327:13: error: no matching function for call to 'strncmp'
>         if (strncmp(item->D_sock, "Events:", strlen("Events:")) == 0) {
>             ^~~~~~~
> /usr/include/string.h:102:6: note: candidate function not viable: no known 
> conversion from 'BSOCK *' to 'const char *' for 1st argument
> int      strncmp(const char *, const char *, size_t) __pure;
>          ^
> 1 error generated.
> 

Thanks, I have pushed a fix on the git repo, we lack of a regress script
for this add-on.

Best Regards,
Eric


_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to