Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Nov 6, 2024
1 parent 0b3248d commit 287d1bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions include/worker_dummy_functions.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/* return human readable name for neb type */
char * nebtype2str(__attribute__((__unused__)) int i) {
return strdup("UNKNOWN");
}

/* return human readable name for nebcallback */
char * nebcallback2str(__attribute__((__unused__)) int i) {
return strdup("UNKNOWN");
}

/* return human readable name for eventtype */
char * eventtype2str(__attribute__((__unused__)) int i) {
return strdup("UNKNOWN");
}

void nm_log(__attribute__((__unused__)) int, __attribute__((__unused__))const char *, ...) {
return;
}
2 changes: 1 addition & 1 deletion neb_module_naemon/mod_gearman.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ static void start_threads(void) {
int x;
for(x = 0; x < mod_gm_opt->result_workers; x++) {
result_threads_running++;
thr = malloc(sizeof(pthread_t));
thr = gm_malloc(sizeof(pthread_t));
if((ret = pthread_create ( thr, NULL, result_worker, (void *)&result_threads_running)) != OK) {
gm_log( GM_LOG_ERROR, "failed to create result thread: %s\n", strerror(ret));
result_thr[x] = NULL;
Expand Down

0 comments on commit 287d1bf

Please sign in to comment.