Prefer C++ std headers

private/hcvcastro/forking
Tor Lillqvist 2015-03-28 13:55:35 +02:00
parent 41f41f7af5
commit 6d9f298ee9
1 changed files with 4 additions and 6 deletions

View File

@ -34,9 +34,7 @@ DEALINGS IN THE SOFTWARE.
*/
#include <unistd.h>
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#define LOK_USE_UNSTABLE_API
@ -348,11 +346,11 @@ int LOOLWSD::childMain()
{
std::cout << Util::logPrefix() << "Child here!" << std::endl;
if (getenv("SLEEPFORDEBUGGER"))
if (std::getenv("SLEEPFORDEBUGGER"))
{
std::cout << "Sleeping " << getenv("SLEEPFORDEBUGGER") << " seconds, " <<
std::cout << "Sleeping " << std::getenv("SLEEPFORDEBUGGER") << " seconds, " <<
"attach process " << Poco::Process::id() << " in debugger now." << std::endl;
Thread::sleep(std::stoul(getenv("SLEEPFORDEBUGGER")) * 1000);
Thread::sleep(std::stoul(std::getenv("SLEEPFORDEBUGGER")) * 1000);
}
LibreOfficeKit *loKit(lok_init(loPath.c_str()));