Ignore:
Timestamp:
2010-09-21T21:02:04Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7282582
Parents:
7c8267b
Message:

Cstyle fixes in libnet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/generic/packet_remote.c

    r7c8267b r2fa0ad9  
    6464 *
    6565 */
    66 static int packet_return(int phone, packet_ref packet, packet_id_t packet_id, size_t size){
     66static int
     67packet_return(int phone, packet_ref packet, packet_id_t packet_id, size_t size)
     68{
    6769        ERROR_DECLARE;
    6870       
    6971        ipc_call_t answer;
    7072        aid_t message = async_send_1(phone, NET_PACKET_GET, packet_id, &answer);
     73
    7174        *packet = (packet_t) as_get_mappable_page(size);
    7275        if (ERROR_OCCURRED(async_share_in_start_0_0(phone, *packet, size)) ||
     
    9194       
    9295        *packet = pm_find(packet_id);
    93         if (!(*packet)) {
     96        if (!*packet) {
    9497                ipcarg_t size;
    9598               
    96                 ERROR_PROPAGATE(async_req_1_1(phone, NET_PACKET_GET_SIZE, packet_id, &size));
     99                ERROR_PROPAGATE(async_req_1_1(phone, NET_PACKET_GET_SIZE,
     100                    packet_id, &size));
    97101                ERROR_PROPAGATE(packet_return(phone, packet, packet_id, size));
    98102        }
    99         if ((** packet).next) {
     103        if ((*packet)->next) {
    100104                packet_t next;
    101105               
    102                 return packet_translate_remote(phone, &next, (** packet).next);
     106                return packet_translate_remote(phone, &next, (*packet)->next);
    103107        }
    104108       
     
    114118        ipcarg_t size;
    115119       
    116         if (ERROR_OCCURRED(async_req_4_2(phone, NET_PACKET_CREATE_4, max_content,
    117             addr_len, max_prefix, max_suffix, &packet_id, &size)))
     120        if (ERROR_OCCURRED(async_req_4_2(phone, NET_PACKET_CREATE_4,
     121            max_content, addr_len, max_prefix, max_suffix, &packet_id, &size)))
    118122                return NULL;
    119123       
     
    121125        packet_t packet = pm_find(packet_id);
    122126        if (!packet) {
    123                 if (ERROR_OCCURRED(packet_return(phone, &packet, packet_id, size)))
     127                if (ERROR_OCCURRED(packet_return(phone, &packet, packet_id,
     128                    size)))
    124129                        return NULL;
    125130        }
     
    141146        packet_t packet = pm_find(packet_id);
    142147        if (!packet) {
    143                 if (ERROR_OCCURRED(packet_return(phone, &packet, packet_id, size)))
     148                if (ERROR_OCCURRED(packet_return(phone, &packet, packet_id,
     149                    size)))
    144150                        return NULL;
    145151        }
Note: See TracChangeset for help on using the changeset viewer.