Changes in uspace/app/netstart/netstart.c [774e9ecd:0485135] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/netstart/netstart.c
r774e9ecd r0485135 41 41 #include <task.h> 42 42 #include <str_error.h> 43 #include <err.h> 43 44 #include <ipc/ipc.h> 44 45 #include <ipc/services.h> … … 71 72 int main(int argc, char *argv[]) 72 73 { 73 int rc;74 ERROR_DECLARE; 74 75 75 76 if (!spawn("networking service", "/srv/net")) … … 79 80 80 81 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; 85 85 } 86 86
Note:
See TracChangeset
for help on using the changeset viewer.