Changeset eb522e8 in mainline for uspace/srv/net/net/net_standalone.c
- Timestamp:
- 2011-06-01T08:43:42Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d6c1f1
- Parents:
- 9e2e715 (diff), e51a514 (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
-
uspace/srv/net/net/net_standalone.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/net/net_standalone.c
r9e2e715 reb522e8 40 40 #include <adt/measured_strings.h> 41 41 #include <adt/module_map.h> 42 #include <ipc/ipc.h>43 42 #include <ipc/net.h> 44 43 #include <errno.h> … … 63 62 int rc; 64 63 65 task_id_t task_id = spawn("/srv/ip");64 task_id_t task_id = net_spawn((uint8_t *) "/srv/ip"); 66 65 if (!task_id) 67 66 return EINVAL; 68 67 69 rc = add_module(NULL, &net_globals.modules, IP_NAME,70 IP_FILENAME, SERVICE_IP, task_id, ip_connect_module);68 rc = add_module(NULL, &net_globals.modules, (uint8_t *) IP_NAME, 69 (uint8_t *) IP_FILENAME, SERVICE_IP, task_id, ip_connect_module); 71 70 if (rc != EOK) 72 71 return rc; 73 72 74 if (! spawn("/srv/icmp"))73 if (!net_spawn((uint8_t *) "/srv/icmp")) 75 74 return EINVAL; 76 75 77 if (! spawn("/srv/udp"))76 if (!net_spawn((uint8_t *) "/srv/udp")) 78 77 return EINVAL; 79 78 80 if (! spawn("/srv/tcp"))79 if (!net_spawn((uint8_t *) "/srv/tcp")) 81 80 return EINVAL; 82 81 … … 100 99 */ 101 100 int net_module_message(ipc_callid_t callid, ipc_call_t *call, 102 ipc_call_t *answer, int *answer_count)101 ipc_call_t *answer, size_t *count) 103 102 { 104 if (IS_NET_PACKET_MESSAGE( call))105 return packet_server_message(callid, call, answer, answer_count);103 if (IS_NET_PACKET_MESSAGE(*call)) 104 return packet_server_message(callid, call, answer, count); 106 105 107 return net_message(callid, call, answer, answer_count);106 return net_message(callid, call, answer, count); 108 107 } 109 108
Note:
See TracChangeset
for help on using the changeset viewer.
