]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 18 May 2015 12:35:47 +0000 (12:35 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 18 May 2015 12:35:47 +0000 (12:35 +0000)
MagickCore/blob.c
MagickCore/blob.h

index a2c7d9272a374ff9dc50bf37990e4950dc68acaf..e8e40e08a7c64f183f7eb211eb1abeb2eb2a6f6f 100644 (file)
@@ -4162,8 +4162,7 @@ MagickExport MagickBooleanType UnmapBlob(void *map,const size_t length)
 %
 %  The format of the WriteBlob method is:
 %
-%      ssize_t WriteBlob(Image *image,const size_t length,
-%        const unsigned char *data)
+%      ssize_t WriteBlob(Image *image,const size_t length,const void *data)
 %
 %  A description of each parameter follows:
 %
@@ -4176,7 +4175,7 @@ MagickExport MagickBooleanType UnmapBlob(void *map,const size_t length)
 %
 */
 MagickExport ssize_t WriteBlob(Image *image,const size_t length,
-  const unsigned char *data)
+  const void *data)
 {
   int
     c;
@@ -4189,13 +4188,13 @@ MagickExport ssize_t WriteBlob(Image *image,const size_t length,
 
   assert(image != (Image *) NULL);
   assert(image->signature == MagickSignature);
-  assert(data != (const unsigned char *) NULL);
+  assert(data != (const void *) NULL);
   assert(image->blob != (BlobInfo *) NULL);
   assert(image->blob->type != UndefinedStream);
   if (length == 0)
     return(0);
   count=0;
-  p=data;
+  p=(const unsigned char *) data;
   switch (image->blob->type)
   {
     case UndefinedStream:
index 96feb2c3f9561bc30920607ba2016164d1f6b9d9..1f507304a194b1dc4f30c069a03255c92dec2a50 100644 (file)
@@ -97,7 +97,7 @@ extern MagickExport MagickSizeType
 
 extern MagickExport ssize_t
   ReadBlob(Image *,const size_t,void *),
-  WriteBlob(Image *,const size_t,const unsigned char *),
+  WriteBlob(Image *,const size_t,const void *),
   WriteBlobByte(Image *,const unsigned char),
   WriteBlobFloat(Image *,const float),
   WriteBlobLong(Image *,const unsigned int),