/[LeafOK_CVS]/lbbs/src/test_memory_pool.c
ViewVC logotype

Diff of /lbbs/src/test_memory_pool.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Thu Jun 12 09:46:42 2025 UTC Revision 1.3 by sysadm, Sat Oct 18 12:06:10 2025 UTC
# Line 14  Line 14 
14   *                                                                         *   *                                                                         *
15   ***************************************************************************/   ***************************************************************************/
16    
 #include "memory_pool.h"  
17  #include "log.h"  #include "log.h"
18    #include "memory_pool.h"
19  #include <stdio.h>  #include <stdio.h>
 #include <unistd.h>  
20  #include <string.h>  #include <string.h>
21    #include <unistd.h>
22    
23  #define NODE_SIZE 1023  #define NODE_SIZE 1023
24  #define NODE_PER_CHUNK 1000  #define NODE_PER_CHUNK 1000
# Line 84  int main(int argc, char *argv[]) Line 84  int main(int argc, char *argv[])
84                          {                          {
85                                  for (k = (int)sizeof(void *); k < NODE_SIZE; k++)                                  for (k = (int)sizeof(void *); k < NODE_SIZE; k++)
86                                  {                                  {
87                                          if ((*(char *)(p_nodes[i] + k)) != 'A' + j - 1)                                          if ((*((char *)p_nodes[i] + k)) != 'A' + j - 1)
88                                          {                                          {
89                                                  printf("Value of node[%d] at offset %d not equal to value set %c\n",                                                  printf("Value of node[%d] at offset %d not equal to value set %c\n",
90                                                             i, k, 'A' + j - 1);                                                             i, k, 'A' + j - 1);


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1