Changes in uspace/srv/net/nil/nildummy/nildummy.c [228e490:46d4d9f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/nildummy/nildummy.c
r228e490 r46d4d9f 110 110 111 111 while (true) { 112 switch (IPC_GET_ IMETHOD(*icall)) {112 switch (IPC_GET_METHOD(*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, ( sysarg_t) rc);116 ipc_answer_0(iid, (ipcarg_t) rc); 117 117 break; 118 118 … … 124 124 IPC_GET_DEVICE(icall), packet, 0); 125 125 } 126 ipc_answer_0(iid, ( sysarg_t) rc);126 ipc_answer_0(iid, (ipcarg_t) rc); 127 127 break; 128 128 129 129 default: 130 ipc_answer_0(iid, ( sysarg_t) ENOTSUP);130 ipc_answer_0(iid, (ipcarg_t) ENOTSUP); 131 131 } 132 132 … … 175 175 device->mtu = NET_DEFAULT_MTU; 176 176 177 printf("Device %d already exists:\tMTU\t= % zu\n",177 printf("Device %d already exists:\tMTU\t= %d\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: % zu)\n",234 printf("%s: Device registered (id: %d, service: %d, mtu: %d)\n", 235 235 NAME, device->device_id, device->service, device->mtu); 236 236 fibril_rwlock_write_unlock(&nildummy_globals.devices_lock); … … 386 386 387 387 *answer_count = 0; 388 switch (IPC_GET_ IMETHOD(*call)) {388 switch (IPC_GET_METHOD(*call)) { 389 389 case IPC_M_PHONE_HUNGUP: 390 390 return EOK; … … 466 466 * result. 467 467 */ 468 if ((IPC_GET_ IMETHOD(call) == IPC_M_PHONE_HUNGUP) ||468 if ((IPC_GET_METHOD(call) == IPC_M_PHONE_HUNGUP) || 469 469 (res == EHANGUP)) 470 470 return;
Note:
See TracChangeset
for help on using the changeset viewer.