changeset 939:0e40e86fe338 trunk

[svn] - clear up instantiation warnings
author nenolod
date Thu, 12 Apr 2007 11:26:44 -0700
parents 31089767a3e3
children 356d2335a975
files ChangeLog src/curl/curl.c
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Apr 12 11:07:04 2007 -0700
+++ b/ChangeLog	Thu Apr 12 11:26:44 2007 -0700
@@ -1,3 +1,11 @@
+2007-04-12 18:07:04 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2004]
+  - use unsigned char instead of gpointer for arithmetic to ensure that writes are 8-bit aligned.
+  
+  trunk/src/curl/curl.c |    6 +++---
+  1 file changed, 3 insertions(+), 3 deletions(-)
+
+
 2007-04-12 17:59:34 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2002]
   - get rid of shadowed variable
--- a/src/curl/curl.c	Thu Apr 12 11:07:04 2007 -0700
+++ b/src/curl/curl.c	Thu Apr 12 11:26:44 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(unsigned char *ptr, size_t size,
+size_t curl_vfs_fread_impl(gpointer ptr_, size_t size,
 		     size_t nmemb,
 		     VFSFile * file);
 gint curl_vfs_fclose_impl(VFSFile * file);
@@ -684,11 +684,12 @@
 }
 
 size_t
-curl_vfs_fread_impl(unsigned char *ptr,
+curl_vfs_fread_impl(gpointer ptr_,
 		    size_t size,
 		    size_t nmemb,
 		    VFSFile * file)
 {
+  unsigned char *ptr = ptr_;
   CurlHandle *handle = file->handle;
   ssize_t sz = size * nmemb;
   ssize_t ret = 0;