Changeset 466e95f7 in mainline for kernel/generic/src/ipc/ops


Ignore:
Timestamp:
2012-10-03T21:08:54Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
faa45c17
Parents:
716185d
Message:

Add SYSIPC_OP macro to avoid repeating the same boilerplate code.

Location:
kernel/generic/src/ipc/ops
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ops/clnestab.c

    r716185d r466e95f7  
    4545}
    4646
    47 static void answer_cleanup(call_t *answer, ipc_data_t *olddata)
     47static int answer_cleanup(call_t *answer, ipc_data_t *olddata)
    4848{
    4949        phone_t *phone = (phone_t *) IPC_GET_ARG5(*olddata);
     
    5757        }
    5858        mutex_unlock(&phone->lock);
     59
     60        return EOK;
    5961}
    6062
  • kernel/generic/src/ipc/ops/conctmeto.c

    r716185d r466e95f7  
    5454}
    5555
    56 static void request_forget(call_t *call)
     56static int request_forget(call_t *call)
    5757{
    5858        phone_dealloc(call->priv);
     59        return EOK;
    5960}
    6061
  • kernel/generic/src/ipc/ops/concttome.c

    r716185d r466e95f7  
    4949}
    5050
    51 static void answer_cleanup(call_t *answer, ipc_data_t *olddata)
     51static int answer_cleanup(call_t *answer, ipc_data_t *olddata)
    5252{
    5353        int phoneid = (int) IPC_GET_ARG5(*olddata);
     
    5555        if (phoneid >= 0)
    5656                phone_dealloc(phoneid);
     57
     58        return EOK;
    5759}
    5860
  • kernel/generic/src/ipc/ops/connclone.c

    r716185d r466e95f7  
    9797}
    9898
    99 static void answer_cleanup(call_t *answer, ipc_data_t *olddata)
     99static int answer_cleanup(call_t *answer, ipc_data_t *olddata)
    100100{
    101101        int phoneid = (int) IPC_GET_ARG1(*olddata);
     
    116116        }
    117117        mutex_unlock(&phone->lock);
     118
     119        return EOK;
    118120}
    119121
Note: See TracChangeset for help on using the changeset viewer.