mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
portable off_t
This commit is contained in:
parent
969ce2e877
commit
ec84d36c9f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user