From c8026bc2d73344e1df526f0a80694046efa4b22a Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 24 Sep 2009 01:44:29 +0000 Subject: Move configuration filename specification to start script, to reduce hardcoded paths in executable git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11759 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/configreader.h | 2 +- include/inspircd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/configreader.h b/include/configreader.h index 45384b8a3..783af0942 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -698,7 +698,7 @@ class CoreExport ServerConfig : public classbase * @param name Directory to tidy * @return The cleaned filename */ - static char* CleanFilename(char* name); + static const char* CleanFilename(const char* name); /** Check if a file exists. * @param file The full path to a file diff --git a/include/inspircd.h b/include/inspircd.h index 72e49c09a..4c3aba95b 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -432,7 +432,7 @@ class CoreExport InspIRCd : public classbase /** Config file pathname specified on the commandline or via ./configure */ - char ConfigFileName[MAXBUF]; + std::string ConfigFileName; /** Mode handler, handles mode setting and removal */ -- cgit v1.2.3