From: dirk Date: Fri, 17 Jun 2016 18:40:27 +0000 (+0200) Subject: Revert method signature change to fix issue #188. X-Git-Tag: 7.0.2-1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=626a27b7ba3ae0d975e27a546855e3302756ce87;p=imagemagick Revert method signature change to fix issue #188. --- diff --git a/MagickCore/utility.c b/MagickCore/utility.c index 5d47c5e1e..47b4578f1 100644 --- a/MagickCore/utility.c +++ b/MagickCore/utility.c @@ -1148,7 +1148,7 @@ MagickPrivate ssize_t GetMagickPageSize(void) % */ MagickExport MagickBooleanType GetPathAttributes(const char *path, - struct stat *attributes) + void *attributes) { MagickBooleanType status; @@ -1158,8 +1158,9 @@ MagickExport MagickBooleanType GetPathAttributes(const char *path, errno=EINVAL; return(MagickFalse); } - (void) ResetMagickMemory(attributes,0,sizeof(*attributes)); - status=stat_utf8(path,attributes) == 0 ? MagickTrue : MagickFalse; + (void) ResetMagickMemory(attributes,0,sizeof(struct stat)); + status=stat_utf8(path,(struct stat *) attributes) == 0 ? MagickTrue : + MagickFalse; return(status); } diff --git a/MagickCore/utility.h b/MagickCore/utility.h index b51c1c5f1..4c286a860 100644 --- a/MagickCore/utility.h +++ b/MagickCore/utility.h @@ -22,10 +22,6 @@ extern "C" { #endif -#if defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(MAGICKCORE_POSIX_SUPPORT) -# include -#endif - typedef enum { UndefinedPath, @@ -46,7 +42,7 @@ extern MagickExport MagickBooleanType AcquireUniqueFilename(char *), AcquireUniqueSymbolicLink(const char *,char *), ExpandFilenames(int *,char ***), - GetPathAttributes(const char *,struct stat *), + GetPathAttributes(const char *,void *), IsPathAccessible(const char *); extern MagickExport size_t