summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-01-21 16:50:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-01-21 16:50:18 +0000
commit419fdf1248633b8d933d5d2c739b36d09f52cda0 (patch)
tree6cb017ae0b45803a55e2a284b430dd70fb13ff98 /tools
parent972dc40ea7c4374c34af9c0c01627151f9f764de (diff)
downloadrtems-419fdf1248633b8d933d5d2c739b36d09f52cda0.tar.bz2
Corrected prototypes for main per Ralf Corsepius' report of warnings
generated when egcs is used with "-Wall -pedantic".
Diffstat (limited to 'tools')
-rw-r--r--tools/build/cklength.c6
-rw-r--r--tools/build/eolstrip.c6
-rw-r--r--tools/build/packhex.c5
-rw-r--r--tools/build/src/cklength.c6
-rw-r--r--tools/build/src/eolstrip.c6
-rw-r--r--tools/build/src/packhex.c5
6 files changed, 24 insertions, 10 deletions
diff --git a/tools/build/cklength.c b/tools/build/cklength.c
index 6059cacb1f..ef271971fc 100644
--- a/tools/build/cklength.c
+++ b/tools/build/cklength.c
@@ -83,8 +83,10 @@ long getparm(char *s, long min, long max, char *msg);
#define stol(p) strtol(p, (char **) NULL, 0)
int Open(), Read(), Write();
-int
-main(int argc, char **argv, char **env)
+int main(
+ int argc,
+ char **argv
+)
{
register int c;
int showusage = FALSE; /* usage error? */
diff --git a/tools/build/eolstrip.c b/tools/build/eolstrip.c
index b4e0d5d165..b8854fabf1 100644
--- a/tools/build/eolstrip.c
+++ b/tools/build/eolstrip.c
@@ -76,8 +76,10 @@ long getparm(char *s, long min, long max, char *msg);
#define stol(p) strtol(p, (char **) NULL, 0)
int Open(), Read(), Write();
-int
-main(int argc, char **argv, char **env)
+int main(
+ int argc,
+ char **argv
+)
{
register int c;
int showusage = FALSE; /* usage error? */
diff --git a/tools/build/packhex.c b/tools/build/packhex.c
index ddd010c4a9..6410b520c6 100644
--- a/tools/build/packhex.c
+++ b/tools/build/packhex.c
@@ -388,7 +388,10 @@ Rec_vitals *formats[] =
*
*******************************************************************************/
-void main( void )
+int main(
+ int argc,
+ char **argv
+)
{
char inbuff[ MAX_LINE_SIZE ], outbuff[ MAX_LINE_SIZE ];
diff --git a/tools/build/src/cklength.c b/tools/build/src/cklength.c
index 6059cacb1f..ef271971fc 100644
--- a/tools/build/src/cklength.c
+++ b/tools/build/src/cklength.c
@@ -83,8 +83,10 @@ long getparm(char *s, long min, long max, char *msg);
#define stol(p) strtol(p, (char **) NULL, 0)
int Open(), Read(), Write();
-int
-main(int argc, char **argv, char **env)
+int main(
+ int argc,
+ char **argv
+)
{
register int c;
int showusage = FALSE; /* usage error? */
diff --git a/tools/build/src/eolstrip.c b/tools/build/src/eolstrip.c
index b4e0d5d165..b8854fabf1 100644
--- a/tools/build/src/eolstrip.c
+++ b/tools/build/src/eolstrip.c
@@ -76,8 +76,10 @@ long getparm(char *s, long min, long max, char *msg);
#define stol(p) strtol(p, (char **) NULL, 0)
int Open(), Read(), Write();
-int
-main(int argc, char **argv, char **env)
+int main(
+ int argc,
+ char **argv
+)
{
register int c;
int showusage = FALSE; /* usage error? */
diff --git a/tools/build/src/packhex.c b/tools/build/src/packhex.c
index ddd010c4a9..6410b520c6 100644
--- a/tools/build/src/packhex.c
+++ b/tools/build/src/packhex.c
@@ -388,7 +388,10 @@ Rec_vitals *formats[] =
*
*******************************************************************************/
-void main( void )
+int main(
+ int argc,
+ char **argv
+)
{
char inbuff[ MAX_LINE_SIZE ], outbuff[ MAX_LINE_SIZE ];