From 7d75e2b8d38d887e0ecf3278db70f1468e8e4a4d Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 8 Jun 2006 20:22:11 +0000 Subject: [PATCH] (teldir, motdfil, downfil, disablefil, telfil, annfil, timestampfil): Change to arrays. --- include/optlist.h | 14 +++++++------- src/lib/global/path.c.in | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/optlist.h b/include/optlist.h index 7d3e6245..9ad5a3d5 100644 --- a/include/optlist.h +++ b/include/optlist.h @@ -46,13 +46,13 @@ extern char dflt_econfig[]; extern char *configdir; -extern char *motdfil; -extern char *downfil; -extern char *disablefil; -extern char *annfil; -extern char *timestampfil; -extern char *teldir; -extern char *telfil; +extern char motdfil[]; +extern char downfil[]; +extern char disablefil[]; +extern char annfil[]; +extern char timestampfil[]; +extern char teldir[]; +extern char telfil[]; enum { KM_ALLOC = 1, /* memory allocated */ diff --git a/src/lib/global/path.c.in b/src/lib/global/path.c.in index b98198e1..795650b5 100644 --- a/src/lib/global/path.c.in +++ b/src/lib/global/path.c.in @@ -60,13 +60,13 @@ char *infodir = "@einfodir@"; char *gamedir = "@gamedir@"; /* These are relative to gamedir: */ -char *teldir = "tel"; -char *motdfil = "motd"; -char *downfil = "down"; -char *disablefil = "disable"; -char *telfil = "tel/tel"; -char *annfil = "ann"; -char *timestampfil = "timestamp"; +char teldir[] = "tel"; +char motdfil[] = "motd"; +char downfil[] = "down"; +char disablefil[] = "disable"; +char telfil[] = "tel/tel"; +char annfil[] = "ann"; +char timestampfil[] = "timestamp"; char *listen_addr = ""; char *loginport = "@EMPIREPORT@";