/[classpath]/classpath/native/jni/java-io/javaio.c
ViewVC logotype

Diff of /classpath/native/jni/java-io/javaio.c

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

revision 1.6 by mark, Mon Oct 28 20:08:40 2002 UTC revision 1.7 by mark, Fri Nov 29 18:41:04 2002 UTC
# Line 1  Line 1 
1  /* javaio.c - Common java.io native functions  /* javaio.c - Common java.io native functions
2     Copyright (C) 1998 Free Software Foundation, Inc.     Copyright (C) 1998, 2002 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 88  _javaio_open(JNIEnv *env, jstring name, Line 88  _javaio_open(JNIEnv *env, jstring name,
88  void  void
89  _javaio_close(JNIEnv *env, jint fd)  _javaio_close(JNIEnv *env, jint fd)
90  {  {
91    int rc;    int rc = 0;
92    
93      if (fd != -1)
94        rc = close(fd);
95    
   rc = close(fd);  
96    if (rc == -1)    if (rc == -1)
97      JCL_ThrowException(env, "java/io/IOException", strerror(errno));      JCL_ThrowException(env, "java/io/IOException", strerror(errno));
98  }  }

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

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