Changeset aadf01e in mainline for uspace/srv/net/net/net_standalone.c


Ignore:
Timestamp:
2010-03-07T15:13:28Z (14 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
936835e
Parents:
aa85487
Message:

Coding style (no functional change)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/net/net_standalone.c

    raa85487 raadf01e  
    5353extern net_globals_t    net_globals;
    5454
    55 int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){
    56         if( IS_NET_PACKET_MESSAGE( call )){
    57                 return packet_server_message( callid, call, answer, answer_count );
     55int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
     56        if(IS_NET_PACKET_MESSAGE(call)){
     57                return packet_server_message(callid, call, answer, answer_count);
    5858        }else{
    59                 return net_message( callid, call, answer, answer_count );
     59                return net_message(callid, call, answer, answer_count);
    6060        }
    6161}
    6262
    63 int net_initialize_build( async_client_conn_t client_connection ){
     63int net_initialize_build(async_client_conn_t client_connection){
    6464        ERROR_DECLARE;
    6565
    66         task_id_t       task_id;
     66        task_id_t task_id;
    6767
    68         task_id = spawn( "/srv/ip" );
    69         if( ! task_id ) return EINVAL;
    70         ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, IP_NAME, IP_FILENAME, SERVICE_IP, task_id, ip_connect_module ));
    71         if( ! spawn( "/srv/icmp" )) return EINVAL;
    72         if( ! spawn( "/srv/udp" )) return EINVAL;
    73         if( ! spawn( "/srv/tcp" )) return EINVAL;
     68        task_id = spawn("/srv/ip");
     69        if(! task_id){
     70                return EINVAL;
     71        }
     72        ERROR_PROPAGATE(add_module(NULL, &net_globals.modules, IP_NAME, IP_FILENAME, SERVICE_IP, task_id, ip_connect_module));
     73        if(! spawn("/srv/icmp")){
     74                return EINVAL;
     75        }
     76        if(! spawn("/srv/udp")){
     77                return EINVAL;
     78        }
     79        if(! spawn("/srv/tcp")){
     80                return EINVAL;
     81        }
    7482        return EOK;
    7583}
Note: See TracChangeset for help on using the changeset viewer.