? names_malloc.diff Index: names.c =================================================================== RCS file: /home/cvs/l4/pkg/names/server/src/names.c,v retrieving revision 1.50 diff -u -r1.50 names.c --- names.c 25 Jun 2006 13:45:58 -0000 1.50 +++ names.c 11 Nov 2006 19:04:24 -0000 @@ -435,9 +435,23 @@ } } +void * +CORBA_alloc(unsigned long s) +{ + static char buf[128]; + return buf; +} + +void +CORBA_free(void *p) +{ +} + int main(int argc, char* argv[]) { + CORBA_Server_Environment env = dice_default_server_environment; + /* first: use the own output function, because we do not know who is the logserver. */ logsrv_outfunc = LOG_outstring; @@ -467,9 +481,13 @@ } #endif + + env.malloc = (dice_malloc_func) CORBA_alloc; + env.free = (dice_free_func) CORBA_free; + DEBUGMSG(2) printf("Entering server loop.\n"); - names_server_loop(NULL); + names_server_loop(&env); return 0; }