OSDN Git Service

* jcf-dump.c (main): Fix error message.
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Dec 1998 15:54:09 +0000 (15:54 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Dec 1998 15:54:09 +0000 (15:54 +0000)
* jcf-path.c (add_entry):  Style fix.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24073 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/jcf-dump.c
gcc/java/jcf-path.c

index c597e10..a6740d7 100644 (file)
@@ -1,3 +1,8 @@
+Thu Dec  3 15:08:30 1998  Per Bothner  <bothner@cygnus.com>
+
+       * jcf-dump.c (main):  Fix error message.
+       * jcf-path.c (add_entry):  Style fix.
+
 Wed Dec  2 15:52:25 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 
        * class.c (layout_class_method): Call build_java_argument_signature
index 1f01c6d..40ad9d9 100644 (file)
@@ -820,7 +820,7 @@ DEFUN(main, (argc, argv),
                    break;  /* got to central directory */
                  if (magic != 0x04034b50) /* ZIPMAGIC (little-endian) */
                    {
-                     fprintf (stderr, "bad format of .zip archine\n");
+                     fprintf (stderr, "bad format of .zip/.jar archive\n");
                      exit (FATAL_EXIT_CODE);
                    }
                  JCF_FILL (jcf, 26);
index 81da015..13fed50 100644 (file)
@@ -141,8 +141,8 @@ add_entry (entp, filename, is_system)
   n->next = NULL;
 
   len = strlen (filename);
-  if (len > 4 && (! strcmp (filename + len - 4, ".zip")
-                 || ! strcmp (filename + len - 4, ".jar")))
+  if (len > 4 && (strcmp (filename + len - 4, ".zip") == 0
+                 || strcmp (filename + len - 4, ".jar") == 0))
     {
       n->flags |= FLAG_ZIP;
       /* If the user uses -classpath then he'll have to include