ossp-pkg/sio/al.c 1.35 -> 1.36
--- al.c 2002/11/14 09:22:42 1.35
+++ al.c 2002/11/19 17:02:17 1.36
@@ -167,8 +167,8 @@
static
void freemem(char *p, size_t n, void *u)
{
- al_t *al = (al_t *)u;
- (al->m.bfree)(p);
+ void (*f)(void *) = (void (*)(void *))u;
+ f(p);
}
/*
@@ -191,7 +191,7 @@
}
buf->freemem = freemem;
- buf->userdata = (void *)al;
+ buf->userdata = (void *)al->m.bfree;
buf->size = n;
buf->usecount = 0;
|
|