changeset 2747:ead11a126bdd

clean up warnings.
author William Pitcock <nenolod@atheme.org>
date Mon, 30 Jun 2008 23:05:32 -0500
parents aa2e0f33f55d
children fe0d1cff2cd0
files src/psf2/plugin.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/psf2/plugin.c	Mon Jun 30 23:03:47 2008 -0500
+++ b/src/psf2/plugin.c	Mon Jun 30 23:05:32 2008 -0500
@@ -55,14 +55,13 @@
 /* ao_get_lib: called to load secondary files */
 int ao_get_lib(char *filename, uint8 **buffer, uint64 *length)
 {
-	uint8 *filebuf;
-	uint32 size;
-	VFSFile *auxfile;
+	guchar *filebuf;
+	gsize size;
 	char buf[PATH_MAX];
 
 	snprintf(buf, PATH_MAX, "%s/%s", dirname(path), filename);
 
-	aud_vfs_file_get_contents(buf, &filebuf, &size);
+	aud_vfs_file_get_contents(buf, (gchar **) &filebuf, &size);
 
 	*buffer = filebuf;
 	*length = (uint64)size;
@@ -72,11 +71,12 @@
 
 void psf2_play(InputPlayback *data)
 {
-	uint8 *buffer;
-	uint32 size, filesig;
+	guchar *buffer;
+	gsize size;
+	uint32 filesig;
 
 	path = g_strdup(data->filename);
-	aud_vfs_file_get_contents(data->filename, &buffer, &size);
+	aud_vfs_file_get_contents(data->filename, (gchar **) &buffer, &size);
 
 	// now try to identify the file
 	type = 0;