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 df10221feee218a8f8c5ebe012de724b9228b624..4bdb0ceb9e1ec5c31ac1ea93e64bc2456633f74b 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;