diff --git a/MagickCore/cache.c b/MagickCore/cache.c
index 2b75424..7c63ea2 100644
--- a/MagickCore/cache.c
+++ b/MagickCore/cache.c
@@ -515,14 +515,13 @@
(void) AcquireMagickResource(FileResource,1);
cache_info->file=file;
cache_info->mode=mode;
- cache_info->timestamp=time(0);
UnlockSemaphoreInfo(cache_info->disk_semaphore);
return(MagickTrue);
}
-static inline MagickOffsetType ReadPixelCacheRegion(CacheInfo *cache_info,
- const MagickOffsetType offset,const MagickSizeType length,
- unsigned char *restrict buffer)
+static inline MagickOffsetType ReadPixelCacheRegion(
+ const CacheInfo *restrict cache_info,const MagickOffsetType offset,
+ const MagickSizeType length,unsigned char *restrict buffer)
{
register MagickOffsetType
i;
@@ -530,7 +529,6 @@
ssize_t
count;
- cache_info->timestamp=time(0);
#if !defined(MAGICKCORE_HAVE_PREAD)
LockSemaphoreInfo(cache_info->disk_semaphore);
if (lseek(cache_info->file,offset,SEEK_SET) < 0)
@@ -564,9 +562,9 @@
return(i);
}
-static inline MagickOffsetType WritePixelCacheRegion(CacheInfo *cache_info,
- const MagickOffsetType offset,const MagickSizeType length,
- const unsigned char *restrict buffer)
+static inline MagickOffsetType WritePixelCacheRegion(
+ const CacheInfo *restrict cache_info,const MagickOffsetType offset,
+ const MagickSizeType length,const unsigned char *restrict buffer)
{
register MagickOffsetType
i;
@@ -574,7 +572,6 @@
ssize_t
count;
- cache_info->timestamp=time(0);
#if !defined(MAGICKCORE_HAVE_PWRITE)
LockSemaphoreInfo(cache_info->disk_semaphore);
if (lseek(cache_info->file,offset,SEEK_SET) < 0)
@@ -1495,7 +1492,7 @@
*/
static inline MagickBooleanType IsPixelAuthentic(
- const CacheInfo *restrict cache_info,NexusInfo *nexus_info)
+ const CacheInfo *restrict cache_info,const NexusInfo *restrict nexus_info)
{
MagickBooleanType
status;
@@ -1831,14 +1828,15 @@
%
*/
-static inline MagickBooleanType ValidatePixelCacheMorphology(const Image *image)
+static inline MagickBooleanType ValidatePixelCacheMorphology(
+ const Image *restrict image)
{
- CacheInfo
- *cache_info;
+ const CacheInfo
+ *restrict cache_info;
- PixelChannelMap
- *p,
- *q;
+ const PixelChannelMap
+ *restrict p,
+ *restrict q;
/*
Does the image match the pixel cache morphology?
@@ -4730,8 +4728,9 @@
%
*/
-static inline MagickBooleanType AcquireCacheNexusPixels(CacheInfo *cache_info,
- NexusInfo *nexus_info,ExceptionInfo *exception)
+static inline MagickBooleanType AcquireCacheNexusPixels(
+ const CacheInfo *restrict cache_info,NexusInfo *nexus_info,
+ ExceptionInfo *exception)
{
if (nexus_info->length != (MagickSizeType) ((size_t) nexus_info->length))
return(MagickFalse);