This commit is contained in:
whottgen
2006-09-25 12:26:58 +00:00
parent 34b0cbd170
commit 943b73001c
4 changed files with 12 additions and 5 deletions

View File

@ -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;
}