Switch to unified view

a/src/internfile/internfile.cpp b/src/internfile/internfile.cpp
...
...
18
#ifndef TEST_INTERNFILE
18
#ifndef TEST_INTERNFILE
19
#include "autoconfig.h"
19
#include "autoconfig.h"
20
20
21
#include <stdio.h>
21
#include <stdio.h>
22
#include <errno.h>
22
#include <errno.h>
23
#include <stdint.h>
23
#include "safefcntl.h"
24
#include "safefcntl.h"
24
#include <sys/types.h>
25
#include <sys/types.h>
25
#include "safesysstat.h"
26
#include "safesysstat.h"
26
#include "safeunistd.h"
27
#include "safeunistd.h"
27
28
...
...
173
        // the db), and is only set when previewing, not for indexing
174
        // the db), and is only set when previewing, not for indexing
174
        if (l_mime.empty() && imime)
175
        if (l_mime.empty() && imime)
175
            l_mime = *imime;
176
            l_mime = *imime;
176
    }
177
    }
177
178
178
    off_t docsize = stp->st_size;
179
    int64_t docsize = stp->st_size;
179
180
180
    if (!l_mime.empty()) {
181
    if (!l_mime.empty()) {
181
    // Has mime: check for a compressed file. If so, create a
182
    // Has mime: check for a compressed file. If so, create a
182
    // temporary uncompressed file, and rerun the mime type
183
    // temporary uncompressed file, and rerun the mime type
183
    // identification, then do the rest with the temp file.
184
    // identification, then do the rest with the temp file.