X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=audioc.c;h=d6c14cbcf7245a3a7db4bb3f86cf7e35efb8384b;hb=4ce5b6570ed83ef2ab5296f369f147593507286b;hp=5f91e3b7d925bf4bd34f67ef0cfeb059a60cef8f;hpb=5967ac5353739c3ff571dd12d4c6814fa8493ad8;p=paraslash.git diff --git a/audioc.c b/audioc.c index 5f91e3b7..d6c14cbc 100644 --- a/audioc.c +++ b/audioc.c @@ -171,7 +171,7 @@ static int audioc_post_monitor(struct sched *s, void *context) if (!sched_read_ok(at->fd, s)) return 0; bufsize = PARA_MAX(1024U, OPT_UINT32_VAL(BUFSIZE)); - buf = para_malloc(bufsize); + buf = alloc(bufsize); ret = recv_bin_buffer(at->fd, buf, bufsize); PARA_DEBUG_LOG("recv: %d\n", ret); if (ret == 0) @@ -370,7 +370,7 @@ int main(int argc, char *argv[]) if (ret < 0) goto out; bufsize = PARA_MAX(1024U, OPT_UINT32_VAL(BUFSIZE)); - buf = para_malloc(bufsize); + buf = alloc(bufsize); do { size_t n = ret = recv_bin_buffer(fd, buf, bufsize); if (ret <= 0)