Super-Rogue: convert to ANSI-style function declarations.
This fixes most of the build warnings.
This commit is contained in:
parent
0f87d5b4d8
commit
59f448e92e
33 changed files with 783 additions and 518 deletions
|
|
@ -32,6 +32,9 @@
|
|||
EXTCHAR version[];
|
||||
EXTCHAR *ctime();
|
||||
|
||||
bool dosave(void);
|
||||
void save_file(FILE *savef);
|
||||
|
||||
typedef struct stat STAT;
|
||||
STAT sbuf;
|
||||
|
||||
|
|
@ -39,7 +42,8 @@ STAT sbuf;
|
|||
* ignore:
|
||||
* Ignore ALL signals possible
|
||||
*/
|
||||
ignore()
|
||||
void
|
||||
ignore(void)
|
||||
{
|
||||
md_ignoreallsignals();
|
||||
}
|
||||
|
|
@ -48,7 +52,8 @@ ignore()
|
|||
* save_game:
|
||||
* Save the current game
|
||||
*/
|
||||
save_game()
|
||||
bool
|
||||
save_game(void)
|
||||
{
|
||||
reg FILE *savef;
|
||||
reg int c;
|
||||
|
|
@ -136,7 +141,8 @@ game_err(int a)
|
|||
* dosave:
|
||||
* Save the game. UID/GID no longer get reset here.
|
||||
*/
|
||||
dosave()
|
||||
bool
|
||||
dosave(void)
|
||||
{
|
||||
FILE *savef;
|
||||
|
||||
|
|
@ -157,8 +163,8 @@ dosave()
|
|||
* save_file:
|
||||
* Do the actual save of this game to a file
|
||||
*/
|
||||
save_file(savef)
|
||||
FILE *savef;
|
||||
void
|
||||
save_file(FILE *savef)
|
||||
{
|
||||
int slines = LINES;
|
||||
int scols = COLS;
|
||||
|
|
@ -182,10 +188,10 @@ FILE *savef;
|
|||
* restore:
|
||||
* Restore a saved game from a file
|
||||
*/
|
||||
restore(file, envp)
|
||||
char *file, **envp;
|
||||
bool
|
||||
restore(char *file, char **envp)
|
||||
{
|
||||
register inf, pid;
|
||||
register int inf, pid;
|
||||
int ret_status;
|
||||
#ifndef _AIX
|
||||
extern char **environ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue