Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/netstart/netstart.c

    r774e9ecd r0485135  
    4141#include <task.h>
    4242#include <str_error.h>
     43#include <err.h>
    4344#include <ipc/ipc.h>
    4445#include <ipc/services.h>
     
    7172int main(int argc, char *argv[])
    7273{
    73         int rc;
     74        ERROR_DECLARE;
    7475       
    7576        if (!spawn("networking service", "/srv/net"))
     
    7980       
    8081        int net_phone = connect_to_service(SERVICE_NETWORKING);
    81         rc = ipc_call_sync_0_0(net_phone, NET_NET_STARTUP);
    82         if (rc != EOK) {
    83                 fprintf(stderr, "%s: Startup error %d\n", NAME, rc);
    84                 return rc;
     82        if (ERROR_OCCURRED(ipc_call_sync_0_0(net_phone, NET_NET_STARTUP))) {
     83                fprintf(stderr, "%s: Startup error %d\n", NAME, ERROR_CODE);
     84                return ERROR_CODE;
    8585        }
    8686       
Note: See TracChangeset for help on using the changeset viewer.