Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/part/mbr_part/mbr_part.c

    r9934f7d r47b7006  
    150150static part_t *mbr_part_new(void);
    151151static void mbr_pte_to_part(uint32_t base, const pt_entry_t *pte, part_t *part);
    152 static void mbr_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg);
     152static void mbr_connection(ipc_callid_t iid, ipc_call_t *icall);
    153153static int mbr_bd_read(part_t *p, uint64_t ba, size_t cnt, void *buf);
    154154static int mbr_bd_write(part_t *p, uint64_t ba, size_t cnt, const void *buf);
     
    190190        }
    191191
    192         rc = block_init(EXCHANGE_SERIALIZE, indev_handle, 2048);
     192        rc = block_init(indev_handle, 2048);
    193193        if (rc != EOK)  {
    194194                printf(NAME ": could not init libblock.\n");
     
    385385}
    386386
    387 static void mbr_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
     387static void mbr_connection(ipc_callid_t iid, ipc_call_t *icall)
    388388{
    389389        size_t comm_size;
     
    437437                callid = async_get_call(&call);
    438438                method = IPC_GET_IMETHOD(call);
    439                
    440                 if (!method) {
     439                switch (method) {
     440                case IPC_M_PHONE_HUNGUP:
    441441                        /* The other side has hung up. */
    442442                        async_answer_0(callid, EOK);
    443443                        return;
    444                 }
    445                
    446                 switch (method) {
    447444                case BD_READ_BLOCKS:
    448445                        ba = MERGE_LOUP32(IPC_GET_ARG1(call),
Note: See TracChangeset for help on using the changeset viewer.