X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=osx_write.c;h=aa95d38314a169f7dcb37f83634ca969f97857c5;hp=f67a63ac1cae42eea3e7a4776e3b3353aadfedcb;hb=749fe6ea3ee4f9411d82ced21bba9029c410ed87;hpb=6bdac07456cb5872f824028912d1049883a9c21f diff --git a/osx_write.c b/osx_write.c index f67a63ac..aa95d383 100644 --- a/osx_write.c +++ b/osx_write.c @@ -19,6 +19,7 @@ #include "string.h" #include "list.h" #include "sched.h" +#include "ggo.h" #include "write.h" #include "osx_write.cmdline.h" #include "error.h" @@ -81,7 +82,7 @@ static void init_buffers(struct writer_node *wn) ptrptr = &powd->to; for (i = 0; i < conf->numbuffers_arg; i++) { - *ptrptr = malloc(sizeof(struct osx_buffer)); + *ptrptr = para_malloc(sizeof(struct osx_buffer)); (*ptrptr)->size = 0; (*ptrptr)->remaining = 0; (*ptrptr)->buffer = NULL; @@ -278,7 +279,7 @@ static int osx_write_post_select(__a_unused struct sched *s, { struct private_osx_write_data *powd = wn->private_data; struct writer_node_group *wng = wn->wng; - short *data = (short*)wng->buf; + short *data = (short*)*wng->bufp; if (!need_new_buffer(wn)) return 1;