changes
This commit is contained in:
@ -23,6 +23,7 @@
|
||||
#include "containers_public.h"
|
||||
#include "htmalloc.h"
|
||||
#include "htbuffer.h"
|
||||
#include "smmapd.h"
|
||||
|
||||
|
||||
int test_worker1_init(cfgl_t *cfg, void **handle);
|
||||
@ -82,14 +83,14 @@ int test_worker1_work(void *handle, void *work_handle, char *input, htbuffer_t *
|
||||
sprintf(o, "Test-Worker 1 receives %s (handle %s) (called %d)\n",
|
||||
input, (char*)handle, (((test_worker1_handle_t*)work_handle)->counter)++);
|
||||
htbuffer_strcpy(output, o);
|
||||
return 0;
|
||||
return SMM_OK;
|
||||
}
|
||||
|
||||
int test_worker2_work(void *handle, void *work_handle, char *input, htbuffer_t *output) {
|
||||
htbuffer_strcpy(output, "Test-Worker 2 receives");
|
||||
htbuffer_strcat(output, input);
|
||||
htbuffer_strcat(output, "\n");
|
||||
return 0;
|
||||
return SMM_OK;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user