--- libelwix/example/test_mem.c 2024/04/15 09:50:57 1.5.78.1 +++ libelwix/example/test_mem.c 2024/04/15 10:09:45 1.5.78.2 @@ -4,10 +4,10 @@ #include -void show(u_int size, u_int act, u_int inact) +int show(unsigned int size, unsigned int act, unsigned int inact, void *data, unsigned int dlen) { if (!act && !inact) - return; + return -1; if (size < 1024) printf("Statistics:: BUCKET %uB size, %u active, %u inactive\n", size, act, inact); @@ -15,6 +15,8 @@ void show(u_int size, u_int act, u_int inact) printf("Statistics:: BUCKET %uKB size, %u active, %u inactive\n", size / 1024, act, inact); else printf("Statistics:: BUCKET %uMB size, %u active, %u inactive\n", size / (1024 * 1024), act, inact); + + return 0; } int