Author: adrian.chadd
Date: Wed Apr  1 15:41:36 2009
New Revision: 13897

Modified:
    branches/LUSCA_HEAD/src/store.c

Log:
Fix compile time type conversion warnings.



Modified: branches/LUSCA_HEAD/src/store.c
==============================================================================
--- branches/LUSCA_HEAD/src/store.c     (original)
+++ branches/LUSCA_HEAD/src/store.c     Wed Apr  1 15:41:36 2009
@@ -615,6 +615,7 @@
      return 0;
  }

+#if 0
  static int
  strncmpnull(const char *a, const char *b, size_t n)
  {
@@ -626,6 +627,7 @@
        return -1;
      return 0;
  }
+#endif

  static void
  storeAddVaryReadOld(void *data, mem_node_ref nr, ssize_t size)
@@ -1718,7 +1720,7 @@
      /* Calculate size of hash table (maximum currently 64k buckets).  */
      i = (Config.Swap.maxSize + (Config.memMaxSize >> 10)) /  
Config.Store.avgObjectSize;
      debug(20, 1) ("Swap maxSize %lu + %lu KB, estimated %ld objects\n",
-       (unsigned long int) Config.Swap.maxSize, (Config.memMaxSize >> 10), i);
+       (unsigned long int) Config.Swap.maxSize, (long int) (Config.memMaxSize 
>>  
10), (unsigned long int) i);
      i /= Config.Store.objectsPerBucket;
      debug(20, 1) ("Target number of buckets: %ld\n", i);
      /* ideally the full scan period should be configurable, for the

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to