Changeset 7fb2ce3 in mainline
- Timestamp:
- 2010-02-17T00:27:50Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f430f58
- Parents:
- 61ee6df
- Location:
- uspace/srv/net
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/modules.c
r61ee6df r7fb2ce3 55 55 56 56 int connect_to_service_timeout( services_t need, suseconds_t timeout ){ 57 i ntphone;58 int 57 ipcarg_t phone; 58 int res; 59 59 60 60 while( true ){ 61 res = async_req_3_5( PHONE_NS, IPC_M_CONNECT_ME_TO, need, 0, 0, NULL, NULL, NULL, NULL, ( ipcarg_t * )& phone );62 if( ( res >= 0 ) && ( phone >= 0 )){61 res = async_req_3_5( PHONE_NS, IPC_M_CONNECT_ME_TO, need, 0, 0, NULL, NULL, NULL, NULL, & phone ); 62 if( res >= 0 ){ 63 63 return phone; 64 64 } -
uspace/srv/net/socket/socket_client.c
r61ee6df r7fb2ce3 541 541 socket_ref new_socket; 542 542 aid_t message_id; 543 int result; 543 ipcarg_t ipc_result; 544 int result; 544 545 ipc_call_t answer; 545 546 … … 592 593 ipc_data_read_start( socket->phone, cliaddr, * addrlen ); 593 594 fibril_rwlock_write_unlock( & socket_globals.lock ); 594 async_wait_for( message_id, ( ipcarg_t * ) & result ); 595 async_wait_for( message_id, & ipc_result ); 596 result = (int) ipc_result; 595 597 if( result > 0 ){ 596 598 if( result != socket_id ){ … … 734 736 socket_ref socket; 735 737 aid_t message_id; 736 int result; 738 ipcarg_t ipc_result; 739 int result; 737 740 size_t fragments; 738 741 size_t * lengths; … … 793 796 } 794 797 } 795 async_wait_for( message_id, ( ipcarg_t * ) & result ); 798 async_wait_for( message_id, & ipc_result ); 799 result = (int) ipc_result; 796 800 // if successful 797 801 if( result == EOK ){ -
uspace/srv/net/structures/packet/packet_remote.c
r61ee6df r7fb2ce3 101 101 ERROR_DECLARE; 102 102 103 packet_id_tpacket_id;103 ipcarg_t packet_id; 104 104 ipcarg_t size; 105 105 packet_t packet; 106 106 107 if( ERROR_OCCURRED( async_req_4_2( phone, NET_PACKET_CREATE_4, max_content, addr_len, max_prefix, max_suffix, ( ipcarg_t * )& packet_id, & size ))){107 if( ERROR_OCCURRED( async_req_4_2( phone, NET_PACKET_CREATE_4, max_content, addr_len, max_prefix, max_suffix, & packet_id, & size ))){ 108 108 return NULL; 109 109 } … … 120 120 ERROR_DECLARE; 121 121 122 packet_id_t packet_id;122 ipcarg_t packet_id; 123 123 ipcarg_t size; 124 124 packet_t packet; 125 125 126 if( ERROR_OCCURRED( async_req_1_2( phone, NET_PACKET_CREATE_1, content, ( ipcarg_t * )& packet_id, & size ))){126 if( ERROR_OCCURRED( async_req_1_2( phone, NET_PACKET_CREATE_1, content, & packet_id, & size ))){ 127 127 return NULL; 128 128 }
Note:
See TracChangeset
for help on using the changeset viewer.