Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/nil/eth/eth_module.c

    raadf01e r21580dd  
    5959/** Prints the module name.
    6060 */
    61 void module_print_name(void);
     61void    module_print_name( void );
    6262
    6363/** Starts the Ethernet module.
     
    6969 *  @returns Other error codes as defined for the REGISTER_ME() macro function.
    7070 */
    71 int module_start(async_client_conn_t client_connection);
     71int     module_start( async_client_conn_t client_connection );
    7272
    7373/** Passes the parameters to the module specific nil_message() function.
     
    8080 *  @returns Other error codes as defined for each specific module message function.
    8181 */
    82 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count);
     82int     module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count );
    8383
    84 void module_print_name(void){
    85         printf("%s", NAME);
     84void module_print_name( void ){
     85        printf( "%s", NAME );
    8686}
    8787
    88 int module_start(async_client_conn_t client_connection){
     88int module_start( async_client_conn_t client_connection ){
    8989        ERROR_DECLARE;
    9090
    91         ipcarg_t phonehash;
    92         int net_phone;
     91        ipcarg_t        phonehash;
     92        int                     net_phone;
    9393
    94         async_set_client_connection(client_connection);
    95         net_phone = net_connect_module(SERVICE_NETWORKING);
    96         ERROR_PROPAGATE(pm_init());
    97         if(ERROR_OCCURRED(nil_initialize(net_phone))
    98                 || ERROR_OCCURRED(REGISTER_ME(SERVICE_ETHERNET, &phonehash))){
     94        async_set_client_connection( client_connection );
     95        net_phone = net_connect_module( SERVICE_NETWORKING );
     96        ERROR_PROPAGATE( pm_init());
     97        if( ERROR_OCCURRED( nil_initialize( net_phone ))
     98        || ERROR_OCCURRED( REGISTER_ME( SERVICE_ETHERNET, & phonehash ))){
    9999                pm_destroy();
    100100                return ERROR_CODE;
     
    107107}
    108108
    109 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
    110         return nil_message(callid, call, answer, answer_count);
     109int     module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){
     110        return nil_message( callid, call, answer, answer_count );
    111111}
    112112
Note: See TracChangeset for help on using the changeset viewer.