Commit acc63e4c by Rainer Orth Committed by Rainer Orth

natFileChannelPosix.cc (mapImpl): Cast MAP_FAILED to void *.

	* gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
	MAP_FAILED to void *.

From-SVN: r79627
parent 689ba89d
2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
MAP_FAILED to void *.
2004-03-12 Graydon Hoare <graydon@redhat.com>
* gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
......
......@@ -504,7 +504,7 @@ FileChannelImpl::mapImpl (jchar mmode, jlong position, jint size)
MappedByteBufferImpl *buf
= new MappedByteBufferImpl ((RawData *) ((char *) ptr + align),
size, mmode == 'r');
if (ptr == MAP_FAILED)
if (ptr == (void *) MAP_FAILED)
throw new IOException (JvNewStringLatin1 (strerror (errno)));
buf->implPtr = reinterpret_cast<RawData*> (ptr);
buf->implLen = size+align;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment