diff options
Diffstat (limited to 'mixlib')
-rw-r--r-- | mixlib/mix_io.c | 4 | ||||
-rw-r--r-- | mixlib/xmix_device.c | 2 | ||||
-rw-r--r-- | mixlib/xmix_io.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/mixlib/mix_io.c b/mixlib/mix_io.c index 704a5c0..4a19abb 100644 --- a/mixlib/mix_io.c +++ b/mixlib/mix_io.c @@ -110,7 +110,7 @@ mix_io_write_word_array (mix_iochannel_t *ioc, const mix_word_t *w, { g_return_val_if_fail (ioc != NULL, FALSE); g_return_val_if_fail (w != NULL, FALSE); - return write_data_ (ioc, &w, s); + return write_data_ (ioc, w, s); } mix_word_t @@ -143,7 +143,7 @@ mix_io_write_short_array (mix_iochannel_t *ioc, const mix_short_t *w, { g_return_val_if_fail (ioc != NULL, FALSE); g_return_val_if_fail (w != NULL, FALSE); - return write_data_ (ioc, &w, s); + return write_data_ (ioc, w, s); } mix_short_t diff --git a/mixlib/xmix_device.c b/mixlib/xmix_device.c index db343ad..b0ec547 100644 --- a/mixlib/xmix_device.c +++ b/mixlib/xmix_device.c @@ -1,7 +1,7 @@ /* -*-c-*- -------------- xmix_device.c : * Implementation of the functions declared in xmix_device.h * ------------------------------------------------------------------ - * Last change: Time-stamp: "2001-05-07 23:49:31 jao" + * Last change: Time-stamp: "2001-05-10 01:10:25 jao" * ------------------------------------------------------------------ * Copyright (C) 2001 Free Software Foundation, Inc. * diff --git a/mixlib/xmix_io.c b/mixlib/xmix_io.c index 7511949..075b185 100644 --- a/mixlib/xmix_io.c +++ b/mixlib/xmix_io.c @@ -25,7 +25,7 @@ #include <fcntl.h> #include "xmix_io.h" -const char *io_OPENTYPE_[5] = { "r", "w", "w+", "a", "a+" }; +const char *io_OPENTYPE_[5] = { "r", "w", "r+", "a", "a+" }; /* initialise a mix_iochannel from a file descriptor */ @@ -47,7 +47,7 @@ io_init_from_fdesc_(mix_iochannel_t *ioc, int fdesc) file = fdopen(fdesc, fmode_to_type_(mode)); g_return_val_if_fail(file != NULL, FALSE); - + if (mode == mix_io_RDWRT) rewind (file); io_init_from_file_(ioc, file); return TRUE; |