1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 15:13:14 +02:00

The const char* specialization of this no longer works

This commit is contained in:
Adam
2013-05-05 21:18:47 -04:00
parent 5b3f81ea78
commit 3f5f84c92c
10 changed files with 17 additions and 23 deletions
+2 -2
View File
@@ -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