Verified Commit de9f2f2e authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

prefer auto instead of explicit type assignment

parent bf08e69c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -349,7 +349,7 @@ static hg_return_t rpc_srv_get_dirents(hg_handle_t handle) {
    auto out_buff = std::make_unique<char[]>(out_size);
    char * out_buff_ptr = out_buff.get();

    bool* bool_ptr = reinterpret_cast<bool*>(out_buff_ptr);
    auto bool_ptr = reinterpret_cast<bool*>(out_buff_ptr);
    char* names_ptr = out_buff_ptr + entries.size();
    for(auto const& e: entries){
        *bool_ptr = e.second;
+1 −1
Original line number Diff line number Diff line
@@ -220,7 +220,7 @@ ssize_t adafs_pread_ws(int fd, void* buf, size_t count, off64_t offset) {
int adafs_opendir(const std::string& path) {
    init_ld_env_if_needed();
#if defined(DO_LOOKUP)
    int err = rpc_send_access(path, F_OK);
    auto err = rpc_send_access(path, F_OK);
    if(err != 0){
        return err;
    }
+1 −1
Original line number Diff line number Diff line
@@ -494,7 +494,7 @@ int closedir(DIR* dirp) {
        errno = EBADF;
        return -1;
    }
    int fd = dirp_to_fd(dirp);
    auto fd = dirp_to_fd(dirp);
    if (ld_is_aux_loaded() && CTX->file_map()->exist(fd)) {
        // No call to the daemon is required
        CTX->file_map()->remove(fd);