aboutsummaryrefslogtreecommitdiff
path: root/fastjar
diff options
context:
space:
mode:
authorRobert Lipe <robertl@sco.com>2000-12-28 21:47:37 +0000
committerRobert Lipe <robertl@gcc.gnu.org>2000-12-28 21:47:37 +0000
commit347d73aac2abf507677b10b82be47273c87049be (patch)
tree372e440dfdf0b9f720c4ea2bafee50822eb53e8e /fastjar
parent212addfac7f08b7cb1fbb223c2934f6addb77227 (diff)
downloadgcc-347d73aac2abf507677b10b82be47273c87049be.zip
gcc-347d73aac2abf507677b10b82be47273c87049be.tar.gz
gcc-347d73aac2abf507677b10b82be47273c87049be.tar.bz2
jartool.c (MAXPATHLEN): Provide if not defined.
2000-12-28 Robert Lipe <robertl@sco.com> * jartool.c (MAXPATHLEN): Provide if not defined. From-SVN: r38515
Diffstat (limited to 'fastjar')
-rw-r--r--fastjar/ChangeLog5
-rw-r--r--fastjar/jartool.c34
2 files changed, 37 insertions, 2 deletions
diff --git a/fastjar/ChangeLog b/fastjar/ChangeLog
index 90c172a..20c1e59 100644
--- a/fastjar/ChangeLog
+++ b/fastjar/ChangeLog
@@ -1,3 +1,8 @@
+
+2000-12-28 Robert Lipe <robertl@sco.com>
+
+ * jartool.c (MAXPATHLEN): Provide if not defined.
+
2000-12-15 Tom Tromey <tromey@redhat.com>
Kelley Cook <kelleycook@home.com>
diff --git a/fastjar/jartool.c b/fastjar/jartool.c
index 5a5f235..d8bfb2a 100644
--- a/fastjar/jartool.c
+++ b/fastjar/jartool.c
@@ -17,9 +17,37 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/* $Id: jartool.c,v 1.2 2000/12/13 18:11:57 tromey Exp $
+/* $Id: jartool.c,v 1.3 2000/12/14 18:45:35 ghazi Exp $
$Log: jartool.c,v $
+ Revision 1.3 2000/12/14 18:45:35 ghazi
+ Warning fixes:
+
+ * compress.c: Include stdlib.h and compress.h.
+ (rcsid): Delete.
+ (report_str_error): Make static.
+ (ez_inflate_str): Delete unused variable. Add parens in if-stmt.
+ (hrd_inflate_str): Likewise.
+
+ * compress.h (init_compression, end_compression, init_inflation,
+ end_inflation): Prototype void arguments.
+
+ * dostime.c (rcsid): Delete.
+
+ * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h.
+ Make functions static. Cast ctype function argument to `unsigned
+ char'. Add parens in if-stmts. Constify.
+ (Usage): Change into a macro.
+ (jargrep): Remove unused parameter.
+
+ * jartool.c: Constify. Add parens in if-stmts. Align
+ signed/unsigned char pointers in functions calls using casts.
+ (rcsid): Delete.
+ (list_jar): Fix printf format specifier.
+ (usage): Chop long string into bits. Reformat.
+
+ * pushback.c (rcsid): Delete.
+
Revision 1.2 2000/12/13 18:11:57 tromey
* jartool.c (extract_jar): Use strchr, not index.
@@ -133,7 +161,9 @@
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
-#else
+#endif
+
+#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif