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:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user