Fix a few more miscellaneous compiler warnings.
This commit is contained in:
parent
ca9e48d5f6
commit
d1422feb80
11 changed files with 6 additions and 16 deletions
|
|
@ -216,7 +216,10 @@ conn(int r1, int r2)
|
||||||
offset = abs(spos.y - epos.y);
|
offset = abs(spos.y - epos.y);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
debug("error in connection tables");
|
debug("error in connection tables");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Draw in the doors on either side of the passage or just put #'s
|
* Draw in the doors on either side of the passage or just put #'s
|
||||||
|
|
|
||||||
|
|
@ -199,6 +199,7 @@ conn(int r1, int r2)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
msg("Error in connection tables.");
|
msg("Error in connection tables.");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Draw in the doors on either side of the passage
|
* Draw in the doors on either side of the passage
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,6 @@
|
||||||
**
|
**
|
||||||
******************/
|
******************/
|
||||||
|
|
||||||
static char sccsid[] = "%W% %G%";
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if !defined(OS2) && !defined(_WIN32)
|
#if !defined(OS2) && !defined(_WIN32)
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,6 @@
|
||||||
#ifndef dict_h_included
|
#ifndef dict_h_included
|
||||||
#define dict_h_included
|
#define dict_h_included
|
||||||
|
|
||||||
static char dict_sccsid[] = "%W% %G%";
|
|
||||||
|
|
||||||
#ifndef TRUE
|
#ifndef TRUE
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,6 @@
|
||||||
** Utilities for Dictionary Maintenence Functions
|
** Utilities for Dictionary Maintenence Functions
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
static char sccsid[] = "%W% %G%";
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,6 @@
|
||||||
#ifndef dictutil_h_included
|
#ifndef dictutil_h_included
|
||||||
#define dictutil_h_included
|
#define dictutil_h_included
|
||||||
|
|
||||||
static char dictutil_sccsid[] = "%W% %G%";
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "dict.h"
|
#include "dict.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,6 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static char sccsid[] = "%W%\t%G%";
|
|
||||||
|
|
||||||
/* Debugging memory allocation code that tries to trap common memory problems
|
/* Debugging memory allocation code that tries to trap common memory problems
|
||||||
like overwriting storage and stepping on memory pointer chains. If code
|
like overwriting storage and stepping on memory pointer chains. If code
|
||||||
doesn't use malloc, free, and realloc a lot, these routines can be left in
|
doesn't use malloc, free, and realloc a lot, these routines can be left in
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ new_level(LEVTYPE ltype, int special)
|
||||||
struct linked_list *item, *nitem;
|
struct linked_list *item, *nitem;
|
||||||
struct thing *tp;
|
struct thing *tp;
|
||||||
struct linked_list *fpack = NULL;
|
struct linked_list *fpack = NULL;
|
||||||
int going_down = TRUE;
|
|
||||||
coord stairs;
|
coord stairs;
|
||||||
|
|
||||||
/* Start player off right */
|
/* Start player off right */
|
||||||
|
|
@ -51,8 +50,6 @@ new_level(LEVTYPE ltype, int special)
|
||||||
|
|
||||||
if (level >= max_level)
|
if (level >= max_level)
|
||||||
max_level = level;
|
max_level = level;
|
||||||
else
|
|
||||||
going_down = FALSE;
|
|
||||||
|
|
||||||
/* Free up the monsters on the last level */
|
/* Free up the monsters on the last level */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static char sccsid[] = "%W% %G%";
|
|
||||||
|
|
||||||
#include "rogue.h"
|
#include "rogue.h"
|
||||||
|
|
||||||
void verify_function(const char *file, const int line)
|
void verify_function(const char *file, const int line)
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@
|
||||||
|
|
||||||
/* #undef NETCOMMAND "uux - -n '%s!%s -u' >/dev/null 2>&1" */
|
/* #undef NETCOMMAND "uux - -n '%s!%s -u' >/dev/null 2>&1" */
|
||||||
/* #define NETCOMMAND "usend -s -d%s -uNoLogin -!'%s -u' - 2>/dev/null" */
|
/* #define NETCOMMAND "usend -s -d%s -uNoLogin -!'%s -u' - 2>/dev/null" */
|
||||||
#define NETCOMMAND ""
|
|
||||||
|
|
||||||
/* Networking information -- should not vary among networking machines */
|
/* Networking information -- should not vary among networking machines */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -420,6 +420,7 @@ score(unsigned long amount, int flags, short monst)
|
||||||
(flags == WINNER) ? (short) max_level : (short) level,
|
(flags == WINNER) ? (short) max_level : (short) level,
|
||||||
monst, player.t_ctype, thissys, login)
|
monst, player.t_ctype, thissys, login)
|
||||||
) {
|
) {
|
||||||
|
#ifdef NETCOMMAND
|
||||||
/* Send this update to the other systems in the network */
|
/* Send this update to the other systems in the network */
|
||||||
int i, j;
|
int i, j;
|
||||||
char cmd[256]; /* Command for remote execution */
|
char cmd[256]; /* Command for remote execution */
|
||||||
|
|
@ -472,6 +473,7 @@ score(unsigned long amount, int flags, short monst)
|
||||||
(void) pclose(rmf);
|
(void) pclose(rmf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue