summaryrefslogtreecommitdiff
path: root/project2/cgi/p2webCgi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/cgi/p2webCgi.cpp')
-rw-r--r--project2/cgi/p2webCgi.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/project2/cgi/p2webCgi.cpp b/project2/cgi/p2webCgi.cpp
index 0248df6..646d08b 100644
--- a/project2/cgi/p2webCgi.cpp
+++ b/project2/cgi/p2webCgi.cpp
@@ -6,7 +6,8 @@ int
main(void)
{
LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onBegin, _1));
- cgiServe(NULL, std::cout);
+ CgiEnvironment env;
+ cgiServe(NULL, &env, std::cout);
LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onIteration, _1));
LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onPeriodic, _1));
LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onIdle, _1));