Changes in uspace/srv/net/nil/nildummy/nildummy.c [1bfd3d3:228e490] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/nildummy/nildummy.c
r1bfd3d3 r228e490 106 106 static void nildummy_receiver(ipc_callid_t iid, ipc_call_t *icall) 107 107 { 108 packet_t packet;108 packet_t *packet; 109 109 int rc; 110 110 111 111 while (true) { 112 switch (IPC_GET_ METHOD(*icall)) {112 switch (IPC_GET_IMETHOD(*icall)) { 113 113 case NET_NIL_DEVICE_STATE: 114 114 rc = nil_device_state_msg_local(0, 115 115 IPC_GET_DEVICE(icall), IPC_GET_STATE(icall)); 116 ipc_answer_0(iid, ( ipcarg_t) rc);116 ipc_answer_0(iid, (sysarg_t) rc); 117 117 break; 118 118 … … 124 124 IPC_GET_DEVICE(icall), packet, 0); 125 125 } 126 ipc_answer_0(iid, ( ipcarg_t) rc);126 ipc_answer_0(iid, (sysarg_t) rc); 127 127 break; 128 128 129 129 default: 130 ipc_answer_0(iid, ( ipcarg_t) ENOTSUP);130 ipc_answer_0(iid, (sysarg_t) ENOTSUP); 131 131 } 132 132 … … 175 175 device->mtu = NET_DEFAULT_MTU; 176 176 177 printf("Device %d already exists:\tMTU\t= % d\n",177 printf("Device %d already exists:\tMTU\t= %zu\n", 178 178 device->device_id, device->mtu); 179 179 fibril_rwlock_write_unlock(&nildummy_globals.devices_lock); … … 232 232 } 233 233 234 printf("%s: Device registered (id: %d, service: %d, mtu: % d)\n",234 printf("%s: Device registered (id: %d, service: %d, mtu: %zu)\n", 235 235 NAME, device->device_id, device->service, device->mtu); 236 236 fibril_rwlock_write_unlock(&nildummy_globals.devices_lock); … … 304 304 305 305 int nil_received_msg_local(int nil_phone, device_id_t device_id, 306 packet_t packet, services_t target)307 { 308 packet_t next;306 packet_t *packet, services_t target) 307 { 308 packet_t *next; 309 309 310 310 fibril_rwlock_read_lock(&nildummy_globals.protos_lock); … … 354 354 * @return EINVAL if the service parameter is not known. 355 355 */ 356 static int nildummy_send_message(device_id_t device_id, packet_t packet,356 static int nildummy_send_message(device_id_t device_id, packet_t *packet, 357 357 services_t sender) 358 358 { … … 378 378 { 379 379 measured_string_t *address; 380 packet_t packet;380 packet_t *packet; 381 381 size_t addrlen; 382 382 size_t prefix; … … 386 386 387 387 *answer_count = 0; 388 switch (IPC_GET_ METHOD(*call)) {388 switch (IPC_GET_IMETHOD(*call)) { 389 389 case IPC_M_PHONE_HUNGUP: 390 390 return EOK; … … 466 466 * result. 467 467 */ 468 if ((IPC_GET_ METHOD(call) == IPC_M_PHONE_HUNGUP) ||468 if ((IPC_GET_IMETHOD(call) == IPC_M_PHONE_HUNGUP) || 469 469 (res == EHANGUP)) 470 470 return;
Note:
See TracChangeset
for help on using the changeset viewer.