Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:nixda:devel
nsca
nsca.abuild.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nsca.abuild.patch of Package nsca
Index: nsca-2.9.2/src/nsca.c =================================================================== --- nsca-2.9.2.orig/src/nsca.c +++ nsca-2.9.2/src/nsca.c @@ -737,6 +737,7 @@ static int find_rhand(int fd){ /* we couldn't find the read handler */ syslog(LOG_ERR, "Handler stack corrupt - aborting"); do_exit(STATE_CRITICAL); + return 0; /* not reached */ } @@ -753,6 +754,7 @@ static int find_whand(int fd){ /* we couldn't find the write handler */ syslog(LOG_ERR, "Handler stack corrupt - aborting"); do_exit(STATE_CRITICAL); + return 0; /* not reached */ } @@ -1260,7 +1262,7 @@ static int write_checkresult_file(char * fprintf(checkresult_file_fp,"### NSCA Passive Check Result ###\n"); fprintf(checkresult_file_fp,"# Time: %s",ctime(¤t_time)); fprintf(checkresult_file_fp,"file_time=%d\n\n",current_time); - fprintf(checkresult_file_fp,"### %s Check Result ###\n",(svc_description=="")?"Host":"Service"); + fprintf(checkresult_file_fp,"### %s Check Result ###\n",( strcmp(svc_description,"") == 0 )?"Host":"Service"); fprintf(checkresult_file_fp,"host_name=%s\n",host_name); if(strcmp(svc_description,"")) fprintf(checkresult_file_fp,"service_description=%s\n",svc_description);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor