Add some missing declarations to headers. Remove some redundant
declarations elsewhere. Change linkage of some functions to static.
This commit is contained in:
parent
e7811102a3
commit
4a3f0b8146
43 changed files with 72 additions and 169 deletions
|
@ -44,10 +44,10 @@
|
|||
#endif
|
||||
#include <string.h>
|
||||
|
||||
void wrmakesrc(char *pathname);
|
||||
void wripglob(char *filename);
|
||||
void wrauth(char *filename);
|
||||
void wrgamesdef(char *filename);
|
||||
static void wrmakesrc(char *pathname);
|
||||
static void wripglob(char *filename);
|
||||
static void wrauth(char *filename);
|
||||
static void wrgamesdef(char *filename);
|
||||
|
||||
char *_c_copyright_header =
|
||||
"/*\n * Empire - A multi-player, client/server Internet based war game.\n * Copyright (C) 1986-2000, Dave Pare, Jeff Bailey, Thomas Ruschak,\n * Ken Stevens, Steve McClure\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n *\n * ---\n *\n * See the \"LEGAL\", \"LICENSE\", \"CREDITS\" and \"README\" files for all the\n * related information and legal notices. It is expected that any future\n * projects/authors will amend these files as needed.\n *\n * ---\n *\n * gamesdef.h: This is an auto-generated file.\n * \n * Known contributors to this file:\n * Automatically generated by doconfig.c\n */\n\n";
|
||||
|
@ -105,7 +105,7 @@ main(void)
|
|||
exit(0);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
wrmakesrc(char *pathname)
|
||||
{
|
||||
FILE *fp;
|
||||
|
@ -123,7 +123,7 @@ wrmakesrc(char *pathname)
|
|||
fclose(fp);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
wripglob(char *filename)
|
||||
{
|
||||
FILE *fp;
|
||||
|
@ -140,7 +140,7 @@ wripglob(char *filename)
|
|||
fclose(fp);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
wrauth(char *filename)
|
||||
{
|
||||
FILE *fp;
|
||||
|
@ -166,7 +166,7 @@ wrauth(char *filename)
|
|||
fclose(fp);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
wrgamesdef(char *filename)
|
||||
{
|
||||
FILE *fp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue