mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +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
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user