+2005-03-28 Marcin Dalecki <martin@dalecki.de>
+
+ * jartool.c (main): Indentation fixlet.
+ (add_entry): Likewise.
+ (init_args): Don't use K&R style.
+ (jt_strdup): Likewise.
+ (get_next_arg): Add explicit '(void)'.
+ (init_headers): Likewise.
+ (version): Likewise.
+
2005-03-15 Zack Weinberg <zack@codesourcery.com>
* Makefile.am (fastjar_TEXINFOS): Add gcc-vers.texi.
/*
jartool.c - main functions for fastjar utility
- Copyright (C) 2002, 2004 Free Software Foundation
+ Copyright (C) 2002, 2004, 2005 Free Software Foundation
Copyright (C) 1999, 2000, 2001 Bryan Burns
This program is free software; you can redistribute it and/or
{ NULL, no_argument, NULL, 0 }
};
-int main(int argc, char **argv){
+int main(int argc, char **argv)
+{
char *mfile = NULL;
static char **args_g;
static void
-init_args(args, current)
- char **args;
- int current;
+init_args(char **args, int current)
{
if(!read_names_from_stdin)
{
}
static char *
-get_next_arg ()
+get_next_arg (void)
{
static int reached_end = 0;
}
}
-void init_headers(){
+void init_headers(void)
+{
/* packing file header */
/* magic number */
file_header[0] = 0x50;
}
-void add_entry(struct zipentry *ze){
+void add_entry(struct zipentry *ze)
+{
if(ziplist == NULL){
ziplist = ze;
return 0;
}
-int make_manifest(int jfd, const char *mf_name, int updating){
+int make_manifest(int jfd, const char *mf_name, int updating)
+{
time_t current_time;
int nlen; /* length of file name */
int mod_time; /* file modification time */
exit (1);
}
-void version ()
+void version (void)
{
printf("jar (%s) %s\n\n", PACKAGE, VERSION);
printf("Copyright 1999, 2000, 2001 Bryan Burns\n");
}
static char *
-jt_strdup(s)
- char *s;
+jt_strdup(char *s)
{
char *result = (char*)malloc(strlen(s) + 1);
if (result == (char*)0)