]> granicus.if.org Git - php/commitdiff
portable off_t
authorAnatol Belski <ab@php.net>
Fri, 6 Mar 2015 10:19:28 +0000 (11:19 +0100)
committerAnatol Belski <ab@php.net>
Sun, 8 Mar 2015 18:47:24 +0000 (19:47 +0100)
ext/fileinfo/libmagic/apprentice.c

index 5e843faba96860b028d42bbeb93b5611ffc2adcb..d87d904a6b89cc57171534c1f9e494aad46bdc05 100644 (file)
@@ -2196,7 +2196,7 @@ goodchar(unsigned char x, const char *extra)
 
 private int
 parse_extra(struct magic_set *ms, struct magic_entry *me, const char *line,
-    off_t off, size_t len, const char *name, const char *extra, int nt)
+    zend_off_t off, size_t len, const char *name, const char *extra, int nt)
 {
        size_t i;
        const char *l = line;
@@ -2265,7 +2265,7 @@ parse_mime(struct magic_set *ms, struct magic_entry *me, const char *line)
        struct magic *m = &me->mp[0];
 
        return parse_extra(ms, me, line,
-           CAST(off_t, offsetof(struct magic, mimetype)),
+           CAST(zend_off_t, offsetof(struct magic, mimetype)),
            sizeof(m->mimetype), "MIME", "+-/.", 1);
 }