Mercurial > libavformat.hg
comparison file.c @ 3973:549a09cf23fe libavformat
Remove offset_t typedef and use int64_t directly instead.
The name offset_t is easily confused with the standard off_t type and
*_t is POSIX reserved namespace if any POSIX header is included.
author | diego |
---|---|
date | Fri, 03 Oct 2008 10:16:29 +0000 |
parents | dc671b723b25 |
children | 898c3d1d9e4e |
comparison
equal
deleted
inserted
replaced
3972:c7a831579a13 | 3973:549a09cf23fe |
---|---|
65 int fd = (size_t)h->priv_data; | 65 int fd = (size_t)h->priv_data; |
66 return write(fd, buf, size); | 66 return write(fd, buf, size); |
67 } | 67 } |
68 | 68 |
69 /* XXX: use llseek */ | 69 /* XXX: use llseek */ |
70 static offset_t file_seek(URLContext *h, offset_t pos, int whence) | 70 static int64_t file_seek(URLContext *h, int64_t pos, int whence) |
71 { | 71 { |
72 int fd = (size_t)h->priv_data; | 72 int fd = (size_t)h->priv_data; |
73 return lseek(fd, pos, whence); | 73 return lseek(fd, pos, whence); |
74 } | 74 } |
75 | 75 |