Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_lookup.c

    rffa2c8ef rdf908b3  
    3737
    3838#include "vfs.h"
     39#include <ipc/ipc.h>
    3940#include <macros.h>
    4041#include <async.h>
     
    160161        ipc_call_t answer;
    161162        int phone = vfs_grab_phone(root->fs_handle);
    162         aid_t req = async_send_5(phone, VFS_OUT_LOOKUP, (sysarg_t) first,
    163             (sysarg_t) (first + len - 1) % PLB_SIZE,
    164             (sysarg_t) root->devmap_handle, (sysarg_t) lflag, (sysarg_t) index,
     163        aid_t req = async_send_5(phone, VFS_OUT_LOOKUP, (ipcarg_t) first,
     164            (ipcarg_t) (first + len - 1) % PLB_SIZE,
     165            (ipcarg_t) root->dev_handle, (ipcarg_t) lflag, (ipcarg_t) index,
    165166            &answer);
    166167       
    167         sysarg_t rc;
     168        ipcarg_t rc;
    168169        async_wait_for(req, &rc);
    169170        vfs_release_phone(root->fs_handle, phone);
     
    178179        fibril_mutex_unlock(&plb_mutex);
    179180       
    180         if ((int) rc < EOK)
     181        if (((int) rc < EOK) || (!result))
    181182                return (int) rc;
    182 
    183         if (!result)
    184                 return EOK;
    185183       
    186184        result->triplet.fs_handle = (fs_handle_t) rc;
    187         result->triplet.devmap_handle = (devmap_handle_t) IPC_GET_ARG1(answer);
     185        result->triplet.dev_handle = (dev_handle_t) IPC_GET_ARG1(answer);
    188186        result->triplet.index = (fs_index_t) IPC_GET_ARG2(answer);
    189187        result->size =
     
    212210        ipc_call_t answer;
    213211        aid_t req = async_send_2(phone, VFS_OUT_OPEN_NODE,
    214             (sysarg_t) result->triplet.devmap_handle,
    215             (sysarg_t) result->triplet.index, &answer);
    216        
    217         sysarg_t rc;
     212            (ipcarg_t) result->triplet.dev_handle,
     213            (ipcarg_t) result->triplet.index, &answer);
     214       
     215        ipcarg_t rc;
    218216        async_wait_for(req, &rc);
    219217        vfs_release_phone(result->triplet.fs_handle, phone);
Note: See TracChangeset for help on using the changeset viewer.