Declare all configuration parameters in optlist.h. Remove some

redundant declarations elsewhere.
This commit is contained in:
Markus Armbruster 2004-02-19 16:46:18 +00:00
parent 6b67276f4f
commit 966eb40899
13 changed files with 65 additions and 58 deletions

View file

@ -34,11 +34,11 @@
#include <fcntl.h>
#include "misc.h"
#include "commands.h"
#include "optlist.h"
int
disa(void)
{
extern s_char *disablefil;
int fd;
if ((fd = open(disablefil, O_RDWR | O_CREAT | O_TRUNC, 0660)) < 0)

View file

@ -35,12 +35,11 @@
#include <fcntl.h>
#include "misc.h"
#include "commands.h"
#include "optlist.h"
int
enab(void)
{
extern s_char *disablefil;
(void)unlink(disablefil);
pr("Updates are enabled\n");
return RET_OK;

View file

@ -55,7 +55,6 @@ mobupdate(void)
extern int updating_mob;
struct mob_acc_globals timestamps;
long now;
extern s_char *timestampfil;
if (!opt_MOB_ACCESS) {
pr("Command invalid - MOB_ACCESS is not enabled.\n");

View file

@ -35,14 +35,13 @@
#include "player.h"
#include "tel.h"
#include "commands.h"
#include "optlist.h"
#include <fcntl.h>
int
turn(void)
{
extern s_char *upfil;
extern s_char *downfil;
int fd;
struct telstr tgm;
register s_char *p;

View file

@ -37,7 +37,6 @@
#include "player.h"
#include "commands.h"
#include "optlist.h"
#include "keyword.h"
#include "wantupd.h"
@ -51,7 +50,6 @@ upda(void)
FILE *fp;
struct mob_acc_globals timestamps;
extern int updating_mob;
extern s_char *timestampfil;
if (opt_MOB_ACCESS) {
#if !defined(_WIN32)