OSSP CVS Repository

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

ossp-pkg/mm/mm_test.c 1.9 -> 1.10

--- mm_test.c    2002/07/26 09:59:34     1.9
+++ mm_test.c    2002/12/19 09:14:58     1.10
@@ -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
@@ -61,7 +61,7 @@
          exit(1); \
      }
 
-int main(int argc, char *argv[]) 
+int main(int argc, char *argv[])
 {
     unsigned char *core;
     int i;
@@ -73,7 +73,7 @@
     char *cp[1025];
     int version;
     struct count_test { int count; int prev; } *ct;
-    
+
     setbuf(stderr, NULL);
 
     /*
@@ -94,7 +94,7 @@
     **  Test Low-Level Shared Memory API
     **
     */
-    
+
     fprintf(stderr, "\n*** TESTING LOW-LEVEL SHARED MEMORY API ***\n");
 
     fprintf(stderr, "\n=== Testing Memory Segment Access ===\n");
@@ -134,7 +134,7 @@
     s = mm_core_size(ct);
     FAILED_IF(s == 0);
     fprintf(stderr, "actually allocated core size = %d\n", s);
-    
+
     ct->prev  = 0;
     ct->count = 1;
     if ((pid = fork()) == 0) {
@@ -203,10 +203,10 @@
     s = mm_available(mm);
     FAILED_IF(s == 0);
     fprintf(stderr, "actually available bytes = %d\n", s);
-    
+
     fprintf(stderr, "Allocating areas inside MM\n");
     n = 0;
-    for (i = 0; i < 1024; i++) 
+    for (i = 0; i < 1024; i++)
         cp[i] = NULL;
     for (i = 0; i < 1024; i++) {
         fprintf(stderr, "total=%09d allocated=%09d add=%06d\r", s, n, (i+1)*(i+1));
@@ -253,10 +253,10 @@
     else {
         fprintf(stderr, "Fine, we have again %d bytes available\n", s2);
     }
-    
+
     fprintf(stderr, "Destroying MM object\n");
     mm_destroy(mm);
-    
+
     /******/
 
     fprintf(stderr, "\nOK - ALL TESTS SUCCESSFULLY PASSED.\n\n");

CVSTrac 2.0.1