Changeset 774e9ecd in mainline
- Timestamp:
- 2010-11-06T23:06:15Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5d0f1bc
- Parents:
- 5f69504
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/netstart/netstart.c
r5f69504 r774e9ecd 41 41 #include <task.h> 42 42 #include <str_error.h> 43 #include <err.h>44 43 #include <ipc/ipc.h> 45 44 #include <ipc/services.h> … … 72 71 int main(int argc, char *argv[]) 73 72 { 74 ERROR_DECLARE;73 int rc; 75 74 76 75 if (!spawn("networking service", "/srv/net")) … … 80 79 81 80 int net_phone = connect_to_service(SERVICE_NETWORKING); 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; 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; 85 85 } 86 86
Note:
See TracChangeset
for help on using the changeset viewer.