Changes in uspace/srv/net/structures/module_map.c [21580dd:a000878c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/structures/module_map.c
r21580dd ra000878c 49 49 GENERIC_CHAR_MAP_IMPLEMENT( modules, module_t ) 50 50 51 int add_module( module_ref * module, modules_ref modules, c har * name,char * filename, services_t service, task_id_t task_id, connect_module_t connect_module ){51 int add_module( module_ref * module, modules_ref modules, const char * name, const char * filename, services_t service, task_id_t task_id, connect_module_t connect_module ){ 52 52 ERROR_DECLARE; 53 53 … … 86 86 } 87 87 88 task_id_t spawn( char * fname ){ 89 char * argv[ 2 ]; 90 // char * argv[ 4 ]; 88 task_id_t spawn( const char * fname ){ 89 const char * argv[ 2 ]; 91 90 task_id_t res; 92 91 93 // printf( "Spawning %s\n", fname );94 92 argv[ 0 ] = fname; 95 93 argv[ 1 ] = NULL; 96 94 res = task_spawn( fname, argv ); 97 /* argv[ 0 ] = "/app/trace"; 98 argv[ 1 ] = "+ti"; 99 argv[ 2 ] = fname; 100 argv[ 3 ] = NULL; 101 res = task_spawn( "/app/trace", argv ); 102 */ 103 if( res != 0 ){ 104 /* Success */ 105 usleep( 10000 ); 106 } 95 107 96 return res; 108 97 }
Note:
See TracChangeset
for help on using the changeset viewer.