jcf-io.c (java_or_class_file): Use libiberty's lbasename instead of basename to avoid...
authorRoger Sayle <roger@eyesopen.com>
Sat, 8 Feb 2003 18:49:22 +0000 (18:49 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sat, 8 Feb 2003 18:49:22 +0000 (18:49 +0000)
* jcf-io.c (java_or_class_file): Use libiberty's lbasename
instead of basename to avoid compiler warnings on Tru64.

From-SVN: r62582

gcc/java/ChangeLog
gcc/java/jcf-io.c

index 2d804ffe3aa4630c462370c6c7c4cef5d7bcb79f..01d8e212a97766b2b6ab200ae682117d7014bf9d 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-08  Roger Sayle  <roger@eyesopen.com>
+
+       * jcf-io.c (java_or_class_file): Use libiberty's lbasename
+       instead of basename to avoid compiler warnings on Tru64.
+
 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
 
        * gcj.texi: Update to GFDL 1.2.
index 5d6ef25d8ba7456d97a68600569286514fde989c..3b10f399b2cb4186c2f8f194f2402f0a713c124f 100644 (file)
@@ -292,7 +292,7 @@ compare_path (const void *key, const void *entry)
 static int
 java_or_class_file (const struct dirent *entry)
 {
-  const char *base = basename (entry->d_name);
+  const char *base = lbasename (entry->d_name);
   return (fnmatch ("*.java", base, 0) == 0 || 
          fnmatch ("*.class", base, 0) == 0);
 }