aboutsummaryrefslogtreecommitdiff
path: root/fastjar/jargrep.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2000-12-15 18:45:09 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-12-15 18:45:09 +0000
commit6bd1914e1089f2bed164ba3601b5f00c8c184c5d (patch)
tree47e45f8fd83083e724cb605ae9a80080a2200296 /fastjar/jargrep.c
parente35990c441a7f86c67fd3299864f31e4f3a6177a (diff)
downloadgcc-6bd1914e1089f2bed164ba3601b5f00c8c184c5d.zip
gcc-6bd1914e1089f2bed164ba3601b5f00c8c184c5d.tar.gz
gcc-6bd1914e1089f2bed164ba3601b5f00c8c184c5d.tar.bz2
jargrep.c: Include getopt.h if it exists.
* jargrep.c: Include getopt.h if it exists. (optind): Declare. * configure, config.h: Rebuilt. * configure.in: Check for getopt.h. Co-Authored-By: Kelley Cook <kelleycook@home.com> From-SVN: r38294
Diffstat (limited to 'fastjar/jargrep.c')
-rw-r--r--fastjar/jargrep.c36
1 files changed, 34 insertions, 2 deletions
diff --git a/fastjar/jargrep.c b/fastjar/jargrep.c
index 1f40eb3..ef3baf0 100644
--- a/fastjar/jargrep.c
+++ b/fastjar/jargrep.c
@@ -1,6 +1,6 @@
/*
jargrep.c - main functions for jargrep utility
- Copyright (C) 1999 Bryan Burns
+ Copyright (C) 1999, 2000 Bryan Burns
Copyright (C) 2000 Cory Hollingsworth
Parts of this program are base on Bryan Burns work with fastjar
@@ -21,9 +21,37 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/* $Id: jargrep.c,v 1.2 2000/12/11 02:59:55 apbianco Exp $
+/* $Id: jargrep.c,v 1.3 2000/12/14 18:45:35 ghazi Exp $
$Log: jargrep.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/11 02:59:55 apbianco
2000-12-10 Robert Lipe <robertlipe@usa.net>
@@ -71,10 +99,14 @@ will test some other platforms later.
#include "zipfile.h"
#include "zlib.h"
#include "compress.h"
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#endif
#define Usage "Usage: %s [-bcinsw] <-e regexp | regexp> file(s)\n"
extern char *optarg;
+extern int optind;
/*
Function name: opt_valid