* jcf-path.c (add_entry): Style fix.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24073
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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);
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