Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/icmp/icmp_module.c

    rd8f95529 redc5a985  
    4343#include <async.h>
    4444#include <stdio.h>
    45 #include <errno.h>
     45#include <err.h>
    4646#include <ipc/ipc.h>
    4747#include <ipc/services.h>
     
    5858int tl_module_start_standalone(async_client_conn_t client_connection)
    5959{
     60        ERROR_DECLARE;
     61
    6062        ipcarg_t phonehash;
    61         int rc;
    6263
    6364        async_set_client_connection(client_connection);
     
    6667                return icmp_globals.net_phone;
    6768
    68         rc = pm_init();
    69         if (rc != EOK)
    70                 return rc;
    71        
    72         rc = icmp_initialize(client_connection);
    73         if (rc != EOK)
    74                 goto out;
    75 
    76         rc = REGISTER_ME(SERVICE_ICMP, &phonehash);
    77         if (rc != EOK)
    78                 goto out;
     69        ERROR_PROPAGATE(pm_init());
     70        if (ERROR_OCCURRED(icmp_initialize(client_connection)) ||
     71            ERROR_OCCURRED(REGISTER_ME(SERVICE_ICMP, &phonehash))) {
     72                pm_destroy();
     73                return ERROR_CODE;
     74        }
    7975
    8076        async_manager();
    8177
    82 out:
    8378        pm_destroy();
    84         return rc;
     79        return EOK;
    8580}
    8681
     
    9489/** @}
    9590 */
     91
Note: See TracChangeset for help on using the changeset viewer.