Switch to unified view

a/src/utils/readfile.cpp b/src/utils/readfile.cpp
...
...
100
        catstrerror(reason, "open/stat", errno);
100
        catstrerror(reason, "open/stat", errno);
101
        return false;
101
        return false;
102
    }
102
    }
103
    noclosing = false;
103
    noclosing = false;
104
    }
104
    }
105
106
#if defined O_NOATIME && O_NOATIME != 0
107
    if (fcntl(fd, F_SETFL, O_NOATIME) < 0) {
108
        // perror("fcntl");
109
    }
110
#endif
105
111
106
    if (cnttoread != (size_t)-1 && cnttoread) {
112
    if (cnttoread != (size_t)-1 && cnttoread) {
107
    doer->init(cnttoread+1, reason);
113
    doer->init(cnttoread+1, reason);
108
    } else if (st.st_size > 0) {
114
    } else if (st.st_size > 0) {
109
    doer->init(st.st_size+1, reason);
115
    doer->init(st.st_size+1, reason);