Check-in Number:
|
2620 | |
Date: |
2002-Oct-18 14:41:20 (local)
2002-Oct-18 12:41:20 (UTC) |
User: | mlelstv |
Branch: | |
Comment: |
correctly initialize callback userdata
get rid of debug printf
PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from: |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/sio/al.c 1.25 -> 1.26
--- al.c 2002/10/18 12:31:50 1.25
+++ al.c 2002/10/18 12:41:20 1.26
@@ -145,7 +145,6 @@
static
void freemem(char *p, size_t n, void *u)
{
-printf("*** FREEMEM(LIBRARY) buffer %p size %d\n",p,n);
al_t *al = (al_t *)u;
(al->m.bfree)(p);
}
@@ -170,7 +169,7 @@
}
buf->freemem = freemem;
- buf->userdata = NULL;
+ buf->userdata = (void *)al;
buf->size = n;
buf->usecount = 0;
|
|