Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5814ef7 in mainline


Ignore:
Timestamp:
2010-03-23T23:16:00Z (12 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master
Children:
3db8889
Parents:
e417b96
Message:
  • explicit cast fix
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/socket/socket_client.c

    re417b96 r5814ef7  
    421421        int socket_id;
    422422        services_t service;
     423        ipcarg_t fragment_size;
     424        ipcarg_t header_size;
    423425
    424426        // find the appropriate service
     
    478480                return socket_id;
    479481        }
    480         if(ERROR_OCCURRED((int) async_req_3_3(phone, NET_SOCKET, socket_id, 0, service, NULL, (ipcarg_t *) &socket->data_fragment_size, (ipcarg_t *) &socket->header_size))){
     482        if(ERROR_OCCURRED((int) async_req_3_3(phone, NET_SOCKET, socket_id, 0, service, NULL, &fragment_size, &header_size))){
    481483                fibril_rwlock_write_unlock(&socket_globals.lock);
    482484                free(socket);
    483485                return ERROR_CODE;
    484486        }
     487        socket->data_fragment_size = (size_t) fragment_size;
     488        socket->header_size = (size_t) header_size;
    485489        // finish the new socket initialization
    486490        socket_initialize(socket, socket_id, phone, service);
Note: See TracChangeset for help on using the changeset viewer.