This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] main() prototypes


Hi All,

this patch adds prototypes for main() to some binutils programs.
E.g. gas and readelf already have this.


Thiemo


2001-12-13  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>

	/binutils/ChangeLog
	* addr2line.c (main): Protoype.
	* ar.c (main): Protoype.
	* nm.c (main): Protoype.
	* objcopy.c (main): Protoype.
	* objdump.c (main): Protoype.
	* size.c (main): Protoype.
	* strings.c (main): Protoype.

	/gas/ChangeLog
	* gasp.c (main): Protoype.


diff -BurpN source-orig/binutils/addr2line.c source/binutils/addr2line.c
--- source-orig/binutils/addr2line.c	Tue Oct  2 08:02:12 2001
+++ source/binutils/addr2line.c	Thu Dec  6 17:14:57 2001
@@ -263,6 +263,8 @@ process_file (filename, target)
   bfd_close (abfd);
 }
 
+int main PARAMS ((int, char **));
+
 int
 main (argc, argv)
      int argc;
diff -BurpN source-orig/binutils/ar.c source/binutils/ar.c
--- source-orig/binutils/ar.c	Wed Sep 19 07:33:15 2001
+++ source/binutils/ar.c	Thu Dec  6 17:14:57 2001
@@ -358,6 +358,8 @@ remove_output ()
 /* The option parsing should be in its own function.
    It will be when I have getopt working.  */
 
+int main PARAMS ((int, char **));
+
 int
 main (argc, argv)
      int argc;
diff -BurpN source-orig/binutils/nm.c source/binutils/nm.c
--- source-orig/binutils/nm.c	Wed Sep 19 07:33:16 2001
+++ source/binutils/nm.c	Thu Dec  6 17:14:57 2001
@@ -394,6 +394,8 @@ set_output_format (f)
   format = &formats[i];
 }
 
+int main PARAMS ((int, char **));
+
 int
 main (argc, argv)
      int argc;
diff -BurpN source-orig/binutils/objcopy.c source/binutils/objcopy.c
--- source-orig/binutils/objcopy.c	Sun Dec  2 15:38:31 2001
+++ source/binutils/objcopy.c	Thu Dec  6 17:14:57 2001
@@ -2599,6 +2599,8 @@ copy_main (argc, argv)
   return 0;
 }
 
+int main PARAMS ((int, char **));
+
 int
 main (argc, argv)
      int argc;
diff -BurpN source-orig/binutils/objdump.c source/binutils/objdump.c
--- source-orig/binutils/objdump.c	Tue Oct  2 08:02:12 2001
+++ source/binutils/objdump.c	Thu Dec  6 17:14:57 2001
@@ -2738,6 +2738,8 @@ display_info ()
   display_target_tables ();
 }
 
+int main PARAMS ((int, char **));
+
 int
 main (argc, argv)
      int argc;
diff -BurpN source-orig/binutils/size.c source/binutils/size.c
--- source-orig/binutils/size.c	Wed Sep 19 07:33:17 2001
+++ source/binutils/size.c	Thu Dec  6 17:14:57 2001
@@ -102,6 +102,8 @@ struct option long_options[] =
   {0, no_argument, 0, 0}
 };
 
+int main PARAMS ((int, char **));
+
 int
 main (argc, argv)
      int argc;
diff -BurpN source-orig/binutils/strings.c source/binutils/strings.c
--- source-orig/binutils/strings.c	Tue Dec  4 23:25:50 2001
+++ source/binutils/strings.c	Thu Dec  6 17:14:57 2001
@@ -150,6 +150,8 @@ static void usage PARAMS ((FILE *stream,
 static long get_char PARAMS ((FILE *stream, file_off *address,
 			      int *magiccount, char **magic));
 
+int main PARAMS ((int, char **));
+
 int
 main (argc, argv)
      int argc;
diff -BurpN source-orig/gas/gasp.c source/gas/gasp.c
--- source-orig/gas/gasp.c	Wed Sep 19 07:33:19 2001
+++ source/gas/gasp.c	Thu Dec  6 17:14:57 2001
@@ -3537,6 +3537,8 @@ show_help ()
   show_usage (stdout, 0);
 }
 
+int main PARAMS ((int, char **));
+
 int
 main (argc, argv)
      int argc;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]