Fix build on MacOs.
authorAndre Noll <maan@systemlinux.org>
Tue, 26 May 2009 18:51:48 +0000 (20:51 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 26 May 2009 18:51:48 +0000 (20:51 +0200)
The changes to write.h broke the osx writer. The fix is trivial though.

osx_write.c

index df10221..4bdb0ce 100644 (file)
@@ -279,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;