Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4242 → Rev 4243

/branches/network/uspace/srv/net/modules.c
43,13 → 43,13
#define MODULE_WAIT_TIME 10000
 
int connect_to_service( services_t need ){
ipcarg_t phone;
int res;
int phone;
int res;
 
res = async_req_3_5( PHONE_NS, IPC_M_CONNECT_ME_TO, need, 0, 0, NULL, NULL, NULL, NULL, & phone );
res = async_req_3_5( PHONE_NS, IPC_M_CONNECT_ME_TO, need, 0, 0, NULL, NULL, NULL, NULL, ( ipcarg_t * ) & phone );
while(( res < 0 ) || ( phone < 0 )){
usleep( MODULE_WAIT_TIME );
res = async_req_3_5( PHONE_NS, IPC_M_CONNECT_ME_TO, need, 0, 0, NULL, NULL, NULL, NULL, & phone );
res = async_req_3_5( PHONE_NS, IPC_M_CONNECT_ME_TO, need, 0, 0, NULL, NULL, NULL, NULL, ( ipcarg_t * ) & phone );
}
return phone;
}
57,7 → 57,7
int bind_service( services_t need, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t arg3, async_client_conn_t client_receiver ){
ERROR_DECLARE;
 
ipcarg_t phone;
int phone;
ipcarg_t phonehash;
 
phone = connect_to_service( need );