From: cristy Date: Mon, 18 May 2015 12:35:47 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1022 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac96558d1c6852e8dbc8d99dcb8b13999acb1aa7;p=imagemagick --- diff --git a/MagickCore/blob.c b/MagickCore/blob.c index a2c7d9272..e8e40e08a 100644 --- a/MagickCore/blob.c +++ b/MagickCore/blob.c @@ -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: diff --git a/MagickCore/blob.h b/MagickCore/blob.h index 96feb2c3f..1f507304a 100644 --- a/MagickCore/blob.h +++ b/MagickCore/blob.h @@ -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),