Mercurial > audlegacy
diff Plugins/Input/wma/libffwma/file.c @ 258:f4a57eac3ba3 trunk
[svn] Last bit of cast rework by Stephen Bennett.
author | chainsaw |
---|---|
date | Sun, 04 Dec 2005 11:22:16 -0800 |
parents | ad1e65c6a854 |
children | d539e5c5f730 |
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); }