Mercurial > audlegacy
changeset 258:f4a57eac3ba3 trunk
[svn] Last bit of cast rework by Stephen Bennett.
author | chainsaw |
---|---|
date | Sun, 04 Dec 2005 11:22:16 -0800 |
parents | 256b3acc87d4 |
children | 88b38e2414a1 |
files | Plugins/Input/wma/libffwma/file.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Input/wma/libffwma/file.c Sun Dec 04 09:29:14 2005 -0800 +++ b/Plugins/Input/wma/libffwma/file.c Sun Dec 04 11:22:16 2005 -0800 @@ -41,32 +41,32 @@ fd = open(filename, access, 0666); if (fd < 0) return -ENOENT; - h->priv_data = (void *)fd; + h->priv_data = (void *)(long)fd; return 0; } static int file_read(URLContext *h, unsigned char *buf, int size) { - int fd = (int)h->priv_data; + int fd = (int)(long)h->priv_data; return read(fd, buf, size); } static int file_write(URLContext *h, unsigned char *buf, int size) { - int fd = (int)h->priv_data; + int fd = (int)(long)h->priv_data; return write(fd, buf, size); } /* XXX: use llseek */ static offset_t file_seek(URLContext *h, offset_t pos, int whence) { - int fd = (int)h->priv_data; + int fd = (int)(long)h->priv_data; return lseek(fd, pos, whence); } static int file_close(URLContext *h) { - int fd = (int)h->priv_data; + int fd = (int)(long)h->priv_data; return close(fd); } @@ -90,19 +90,19 @@ } else { fd = 0; } - h->priv_data = (void *)fd; + h->priv_data = (void *)(long)fd; return 0; } static int pipe_read(URLContext *h, unsigned char *buf, int size) { - int fd = (int)h->priv_data; + int fd = (int)(long)h->priv_data; return read(fd, buf, size); } static int pipe_write(URLContext *h, unsigned char *buf, int size) { - int fd = (int)h->priv_data; + int fd = (int)(long)h->priv_data; return write(fd, buf, size); }