diff options
author | Adam <Adam@anope.org> | 2013-05-05 21:18:47 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-05-05 21:18:47 -0400 |
commit | 3f5f84c92c1a424843b430c60a50efa600ae1236 (patch) | |
tree | ae16ada522b5cbed074f8d154d01e8657d195318 /src/init.cpp | |
parent | 5b3f81ea78f7a8ab69ff94cbf2bbf07f5966682e (diff) |
The const char* specialization of this no longer works
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index faa57c18b..205fb2501 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -197,14 +197,14 @@ static void InitSignals() static void remove_pidfile() { - remove(Config->GetBlock("serverinfo")->Get<const char *>("pid")); + remove(Config->GetBlock("serverinfo")->Get<const Anope::string>("pid").c_str()); } /* Create our PID file and write the PID to it. */ static void write_pidfile() { - FILE *pidfile = fopen(Config->GetBlock("serverinfo")->Get<const char *>("pid"), "w"); + FILE *pidfile = fopen(Config->GetBlock("serverinfo")->Get<const Anope::string>("pid").c_str(), "w"); if (pidfile) { #ifdef _WIN32 |