Unverified Commit d49f2131 authored by Mohsen's avatar Mohsen Committed by GitHub

Update listener.cc

using std::string, fix code style
parent 9f607aba
......@@ -108,7 +108,7 @@ void
Listener::init(
size_t workers,
Flags<Options> options,
const char * workersName,
std::string workersName,
int backlog)
{
if (workers > hardware_concurrency()) {
......@@ -119,7 +119,7 @@ Listener::init(
backlog_ = backlog;
useSSL_ = false;
workers_ = workers;
strcpy(workersName_, workersName);
workersName_ = workersName;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment