Changeset 3da12d74 in mainline for uspace/app/netstart/netstart.c
- Timestamp:
- 2010-11-07T13:41:35Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ce7eb5, 9fd39d6, b40bfac
- Parents:
- 1712f87 (diff), 69e0d6d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/netstart/netstart.c
r1712f87 r3da12d74 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.