summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
diff options
context:
space:
mode:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-21 18:21:00 +0000
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-21 18:21:00 +0000
commit17c381ce5b34e251656ffec36b0c909f660050b0 (patch)
treedcc18947be5c12c097f76186d9f8c216b46570d7 /libjava/gnu/java/nio/channels/natFileChannelPosix.cc
parent52cae7bfd8f8df4aabad75705c4d209587d2ddc3 (diff)
downloadppe42-gcc-17c381ce5b34e251656ffec36b0c909f660050b0.tar.gz
ppe42-gcc-17c381ce5b34e251656ffec36b0c909f660050b0.zip
* gnu/java/nio/channels/natFileChannelPosix.cc
(FileChannelImpl::available): Call FIONREAD ioctl with 'int *' argument instead of 'long *'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89391 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/java/nio/channels/natFileChannelPosix.cc')
-rw-r--r--libjava/gnu/java/nio/channels/natFileChannelPosix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/gnu/java/nio/channels/natFileChannelPosix.cc b/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
index a2c1c7962b0..edc843b903a 100644
--- a/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
+++ b/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
@@ -380,7 +380,7 @@ jint
FileChannelImpl::available (void)
{
#if defined (FIONREAD) || defined (HAVE_SELECT) || defined (HAVE_FSTAT)
- long num = 0;
+ int num = 0;
int r = 0;
bool num_set = false;
@@ -423,7 +423,7 @@ FileChannelImpl::available (void)
&& S_ISREG (sb.st_mode)
&& (where = lseek (fd, 0, SEEK_CUR)) != (off_t) -1)
{
- num = (long) (sb.st_size - where);
+ num = (int) (sb.st_size - where);
num_set = true;
}
}
OpenPOWER on IntegriCloud