OSSP CVS Repository

ossp - Difference in ossp-pkg/mm/mm_alloc.c versions 1.16 and 1.17
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/mm/mm_alloc.c 1.16 -> 1.17

--- mm_alloc.c   2002/07/26 09:59:34     1.16
+++ mm_alloc.c   2002/12/19 09:14:58     1.17
@@ -6,7 +6,7 @@
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer. 
+ *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
@@ -111,7 +111,7 @@
 }
 
 /*
- * Lock a memory pool 
+ * Lock a memory pool
  */
 int mm_lock(MM *mm, mm_lock_mode mode)
 {
@@ -121,7 +121,7 @@
 }
 
 /*
- * Unlock a memory pool 
+ * Unlock a memory pool
  */
 int mm_unlock(MM *mm)
 {
@@ -155,7 +155,7 @@
     fprintf(stderr, "    memory size     = %d\n", mm->mp_size);
     fprintf(stderr, "    memory offset   = %d\n", mm->mp_offset);
     fprintf(stderr, "    bytes spare     = %d\n", mm->mp_size-mm->mp_offset);
-    fprintf(stderr, "    bytes free      = %d (%d chunk%s)\n", 
+    fprintf(stderr, "    bytes free      = %d (%d chunk%s)\n",
             nFree, mm->mp_freechunks.mc_usize,
             mm->mp_freechunks.mc_usize == 1 ? "" : "s");
     fprintf(stderr, "    bytes allocated = %d\n", nAlloc);
@@ -166,7 +166,7 @@
         i = 1;
         while (mc->mc_u.mc_next != NULL) {
             mc = mc->mc_u.mc_next;
-            fprintf(stderr, "        chunk #%03d: 0x%lx-0x%lx (%d bytes)\n", 
+            fprintf(stderr, "        chunk #%03d: 0x%lx-0x%lx (%d bytes)\n",
                     i++, (unsigned long)mc, (unsigned long)(mc+mc->mc_size), mc->mc_size);
         }
     }
@@ -188,7 +188,7 @@
     mem_chunk *mc;
     mem_chunk *mcPrev;
     mem_chunk *mcNext;
-    
+
     if (!mm_core_lock((void *)mm, MM_LOCK_RW))
         return;
     mc = &(mm->mp_freechunks);
@@ -313,7 +313,7 @@
         mm_core_unlock((void *)mm);
         ERR(MM_ERR_ALLOC, "out of memory");
         errno = ENOMEM;
-        return NULL; 
+        return NULL;
     }
     mc = (mem_chunk *)((char *)mm + mm->mp_offset);
     mc->mc_size  = size;

CVSTrac 2.0.1