/[classpath]/classpath/java/net/SocketInputStream.java
ViewVC logotype

Diff of /classpath/java/net/SocketInputStream.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by mark, Tue Jan 22 22:27:00 2002 UTC revision 1.8 by bryce, Fri Aug 30 03:54:39 2002 UTC
# Line 1  Line 1 
1  /* SocketInputStream.java -- An InputStream for Sockets  /* SocketInputStream.java -- An InputStream for Sockets
2     Copyright (C) 1998,2000 Free Software Foundation, Inc.     Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 160  read() throws IOException Line 160  read() throws IOException
160    int bytes_read = read(buf, 0, buf.length);    int bytes_read = read(buf, 0, buf.length);
161    
162    if (bytes_read != -1)    if (bytes_read != -1)
163      return((int)buf[0]);      return(buf[0] & 0xFF);
164    else    else
165      return(-1);      return(-1);
166  }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26