[kaffe] CVS kaffe (dalibor): Fixed small compiler warning on powerpc-darwin

Kaffe CVS cvs-commits at kaffe.org
Thu Oct 30 06:56:02 PST 2003


PatchSet 4139 
Date: 2003/10/30 14:53:56
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Fixed small compiler warning on powerpc-darwin

Members: 
	ChangeLog:1.1731->1.1732 
	libraries/clib/io/AudioPlayer.c:1.12->1.13 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1731 kaffe/ChangeLog:1.1732
--- kaffe/ChangeLog:1.1731	Thu Oct 30 08:16:02 2003
+++ kaffe/ChangeLog	Thu Oct 30 14:53:56 2003
@@ -1,5 +1,12 @@
 2003-10-30  Dalibor Topic <robilad at kaffe.org>
 
+	* libraries/clib/io/AudioPlayer.c:
+	(kaffe_applet_AudioPlayer_playFile) Changed bRead
+	type to ssize_t to fix compiler warning on
+	powerpc-darwin.
+
+2003-10-30  Dalibor Topic <robilad at kaffe.org>
+
 	* libraries/clib/net/PlainSocketImpl.c,
 	libraries/clib/net/PlainDatagramSocketImpl.c:
 	(ip62str) Use s6_addr to access bytes in address
Index: kaffe/libraries/clib/io/AudioPlayer.c
diff -u kaffe/libraries/clib/io/AudioPlayer.c:1.12 kaffe/libraries/clib/io/AudioPlayer.c:1.13
--- kaffe/libraries/clib/io/AudioPlayer.c:1.12	Wed Jan 19 10:59:19 2000
+++ kaffe/libraries/clib/io/AudioPlayer.c	Thu Oct 30 14:53:58 2003
@@ -24,7 +24,7 @@
 	char    fName[MAXPATHLEN];
 	int     bLen = 1024;
 	int     fin, dev, rc;
-	size_t	bRead;
+	ssize_t	bRead;
 	void	*buf;
 
 	buf = KMALLOC( bLen);
@@ -46,7 +46,7 @@
 		SignalError("java.io.IOException", SYS_ERROR(rc));
 	}
 
-	while ( (KREAD( fin, buf, bLen, &bRead ) == 0) && ((ssize_t)bRead > 0)) {
+	while ( (KREAD( fin, buf, bLen, &bRead ) == 0) && (bRead > 0)) {
 		ssize_t bWritten;
 		KWRITE( dev, buf, bRead, &bWritten );	/* XXX check error */
 	}




More information about the kaffe mailing list