Mercurial > audlegacy-plugins
changeset 938:31089767a3e3 trunk
[svn] - use unsigned char instead of gpointer for arithmetic to ensure that writes are 8-bit aligned.
author | nenolod |
---|---|
date | Thu, 12 Apr 2007 11:07:04 -0700 |
parents | c11425915fcb |
children | 0e40e86fe338 |
files | ChangeLog src/curl/curl.c |
diffstat | 2 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Apr 12 10:59:34 2007 -0700 +++ b/ChangeLog Thu Apr 12 11:07:04 2007 -0700 @@ -1,3 +1,11 @@ +2007-04-12 17:59:34 +0000 William Pitcock <nenolod@sacredspiral.co.uk> + revision [2002] + - get rid of shadowed variable + + trunk/src/curl/curl.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + + 2007-04-12 17:58:04 +0000 William Pitcock <nenolod@sacredspiral.co.uk> revision [2000] - fix a ton of warnings
--- a/src/curl/curl.c Thu Apr 12 10:59:34 2007 -0700 +++ b/src/curl/curl.c Thu Apr 12 11:07:04 2007 -0700 @@ -93,7 +93,7 @@ size_t curl_vfs_fwrite_impl(gconstpointer ptr, size_t size, size_t nmemb, VFSFile * file); -size_t curl_vfs_fread_impl(gpointer ptr, size_t size, +size_t curl_vfs_fread_impl(unsigned char *ptr, size_t size, size_t nmemb, VFSFile * file); gint curl_vfs_fclose_impl(VFSFile * file); @@ -299,7 +299,7 @@ handle->meta_abs = handle->wr_abs; } -static size_t curl_writecb(void *ptr, size_t size, size_t nmemb, void *stream) +static size_t curl_writecb(unsigned char *ptr, size_t size, size_t nmemb, void *stream) { CurlHandle *handle = stream; gint sz = size * nmemb; @@ -684,7 +684,7 @@ } size_t -curl_vfs_fread_impl(gpointer ptr, +curl_vfs_fread_impl(unsigned char *ptr, size_t size, size_t nmemb, VFSFile * file)