Skip to content

Commit

Permalink
Revert method signature change to fix issue #188.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jun 17, 2016
1 parent 9a4fda0 commit 626a27b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 4 additions & 3 deletions MagickCore/utility.c
Expand Up @@ -1148,7 +1148,7 @@ MagickPrivate ssize_t GetMagickPageSize(void)
%
*/
MagickExport MagickBooleanType GetPathAttributes(const char *path,
struct stat *attributes)
void *attributes)
{
MagickBooleanType
status;
Expand All @@ -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);
}

Expand Down
6 changes: 1 addition & 5 deletions MagickCore/utility.h
Expand Up @@ -22,10 +22,6 @@
extern "C" {
#endif

#if defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(MAGICKCORE_POSIX_SUPPORT)
# include <sys/stat.h>
#endif

typedef enum
{
UndefinedPath,
Expand All @@ -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
Expand Down

0 comments on commit 626a27b

Please sign in to comment.