OSDN Git Service

[mpg123] Fix prototype of mpg123_read
authorStarg <starg@users.osdn.me>
Tue, 19 May 2020 09:39:53 +0000 (18:39 +0900)
committerStarg <starg@users.osdn.me>
Tue, 19 May 2020 09:39:53 +0000 (18:39 +0900)
timidity/w32_libmpg123_dll.c

index e0a976a..1191d51 100644 (file)
@@ -25,7 +25,7 @@ typedef int (*type_mpg123_format)(mpg123_handle *mh, long rate, int channels, in
 typedef int (*type_mpg123_replace_reader_handle)(mpg123_handle *mh, ssize_t (*r_read)(void *, void *, size_t), off_t (*r_lseek)(void *, off_t, int), void (*cleanup)(void *));
 typedef int (*type_mpg123_open_handle)(mpg123_handle *mh, void *iohandle);
 typedef int (*type_mpg123_getformat)(mpg123_handle *mh, long *rate, int *channels, int *encoding);
-typedef int (*type_mpg123_read)(mpg123_handle *mh, unsigned char *out, size_t size, size_t *done);
+typedef int (*type_mpg123_read)(mpg123_handle *mh, void *out, size_t size, size_t *done);
 
 static struct {
        type_mpg123_init mpg123_init;
@@ -167,7 +167,7 @@ int mpg123_getformat(mpg123_handle *mh, long *rate, int *channels, int *encoding
        }
 }
 
-int mpg123_read(mpg123_handle *mh, unsigned char *out, size_t size, size_t *done)
+int mpg123_read(mpg123_handle *mh, void *out, size_t size, size_t *done)
 {
        if (mpg123_dll.mpg123_read) {
                return (*mpg123_dll.mpg123_read)(mh, out, size, done);