main() does not need to be declared.

Index: bin/pax/extern.h
===================================================================
RCS file: /cvs/src/bin/pax/extern.h,v
retrieving revision 1.53
diff -u -p -r1.53 extern.h
--- bin/pax/extern.h    19 Mar 2015 05:14:24 -0000      1.53
+++ bin/pax/extern.h    1 Jan 2016 15:27:58 -0000
@@ -246,7 +246,6 @@ extern char *tempfile;
 extern char *tempbase;
 extern int havechd;
 
-int main(int, char **);
 void sig_cleanup(int);
 
 /*
Index: games/adventure/extern.h
===================================================================
RCS file: /cvs/src/games/adventure/extern.h,v
retrieving revision 1.8
diff -u -p -r1.8 extern.h
--- games/adventure/extern.h    26 Dec 2015 00:26:39 -0000      1.8
+++ games/adventure/extern.h    1 Jan 2016 15:28:07 -0000
@@ -72,9 +72,6 @@ struct text;
 void speak(const struct text *);
 void pspeak(int, int);
 
-/* main.c */
-int main(int, char **);
-
 /* save.c */
 int save(const char *);
 int restore(const char *);
Index: games/battlestar/battlestar.c
===================================================================
RCS file: /cvs/src/games/battlestar/battlestar.c,v
retrieving revision 1.18
diff -u -p -r1.18 battlestar.c
--- games/battlestar/battlestar.c       4 Dec 2015 17:34:40 -0000       1.18
+++ games/battlestar/battlestar.c       1 Jan 2016 15:28:07 -0000
@@ -40,8 +40,6 @@
 #include "extern.h"
 #include "pathnames.h"
 
-int main(int, char *[]);
-
 int
 main(int argc, char *argv[])
 {
 

-- 
Michal Mazurek

Reply via email to