portable off_t

This commit is contained in:
Anatol Belski 2015-03-06 11:19:28 +01:00
parent 969ce2e877
commit ec84d36c9f

View File

@ -2196,7 +2196,7 @@ goodchar(unsigned char x, const char *extra)
private int private int
parse_extra(struct magic_set *ms, struct magic_entry *me, const char *line, 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; size_t i;
const char *l = line; 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]; struct magic *m = &me->mp[0];
return parse_extra(ms, me, line, 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); sizeof(m->mimetype), "MIME", "+-/.", 1);
} }