]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 28 Jan 2013 13:26:57 +0000 (13:26 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 28 Jan 2013 13:26:57 +0000 (13:26 +0000)
MagickCore/distribute-cache.c

index fcfc70a6312b31905a031e008f314dff1a7f8f3c..e01cfd305dfa283bf6b201e6096c202dbf0f2d9a 100644 (file)
 
 static size_t CRC64(const unsigned char *message,const MagickSizeType length)
 {
-  size_t
-    crc;
-
   register MagickOffsetType
     i;
 
+  size_t
+    crc;
+
   static MagickBooleanType
     crc_initial = MagickFalse;
 
@@ -139,7 +139,7 @@ static size_t CRC64(const unsigned char *message,const MagickSizeType length)
         register MagickOffsetType
           j;
 
-        alpha=(MagickSizeType) i;
+        alpha=(size_t) i;
         for (j=0; j < 8; j++)
         {
           if ((alpha & 0x01) == 0)
@@ -207,7 +207,7 @@ static int ConnectPixelCacheServer(const char *hostname,const int port,
   register unsigned char
     *p;
 
-  size_t
+  ssize_t
     count;
 
   struct addrinfo
@@ -513,7 +513,7 @@ static MagickBooleanType OpenDistributeCache(SplayTreeInfo *registry,
   if (count != (MagickOffsetType) length)
     return(MagickFalse);
   /*
-    Deserialize image attributes.
+    Deserialize the image attributes.
   */
   p=message;
   (void) memcpy(&image->storage_class,p,sizeof(image->storage_class));