Subversion Repositories HelenOS

Rev

Rev 3107 | Rev 3403 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3107 Rev 3149
Line 424... Line 424...
424
{
424
{
425
    call_t call;
425
    call_t call;
426
    phone_t *phone;
426
    phone_t *phone;
427
    int res;
427
    int res;
428
    int rc;
428
    int rc;
429
 
429
   
430
    GET_CHECK_PHONE(phone, phoneid, return ENOENT);
430
    GET_CHECK_PHONE(phone, phoneid, return ENOENT);
431
 
431
 
432
    ipc_call_static_init(&call);
432
    ipc_call_static_init(&call);
433
    IPC_SET_METHOD(call.data, method);
433
    IPC_SET_METHOD(call.data, method);
434
    IPC_SET_ARG1(call.data, arg1);
434
    IPC_SET_ARG1(call.data, arg1);
Line 624... Line 624...
624
 
624
 
625
    GET_CHECK_PHONE(phone, phoneid, {
625
    GET_CHECK_PHONE(phone, phoneid, {
626
        IPC_SET_RETVAL(call->data, EFORWARD);
626
        IPC_SET_RETVAL(call->data, EFORWARD);
627
        ipc_answer(&TASK->answerbox, call);
627
        ipc_answer(&TASK->answerbox, call);
628
        return ENOENT;
628
        return ENOENT;
629
    });    
629
    });
630
 
630
 
631
    if (!method_is_forwardable(IPC_GET_METHOD(call->data))) {
631
    if (!method_is_forwardable(IPC_GET_METHOD(call->data))) {
632
        IPC_SET_RETVAL(call->data, EFORWARD);
632
        IPC_SET_RETVAL(call->data, EFORWARD);
633
        ipc_answer(&TASK->answerbox, call);
633
        ipc_answer(&TASK->answerbox, call);
634
        return EPERM;
634
        return EPERM;