]> jfr.im git - irc/UndernetIRC/gnuworld.git/commitdiff
Fixed compiling error and possible core on load.
authorSpike <redacted>
Thu, 15 Jan 2009 08:31:07 +0000 (08:31 +0000)
committerSpike <redacted>
Thu, 15 Jan 2009 08:31:07 +0000 (08:31 +0000)
mod.openchanfix/chanfix.cc
mod.openchanfix/sqlManager.cc

index 05c51d60b64f64602e01af9709520dd2ddae1901..bfc740b1097f00730b256d2f30cd148174de8369 100644 (file)
@@ -23,7 +23,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
  * USA.
  *
- * $Id: chanfix.cc,v 1.14 2008/01/16 02:03:39 buzlip01 Exp $
+ * $Id: chanfix.cc,v 1.15 2009/01/15 08:31:07 denspike Exp $
  */
 
 #include       <csignal>
@@ -62,7 +62,7 @@
 #include       <boost/thread/thread.hpp>
 #endif /* CHANFIX_HAVE_BOOST_THREAD */
 
-RCSTAG("$Id: chanfix.cc,v 1.14 2008/01/16 02:03:39 buzlip01 Exp $");
+RCSTAG("$Id: chanfix.cc,v 1.15 2009/01/15 08:31:07 denspike Exp $");
 
 namespace gnuworld
 {
@@ -3409,7 +3409,7 @@ return std::string( "Unable to retrieve response. Please contact a chanfix "
 void chanfix::loadTranslationTable()
 {
 /* Get a connection instance to our backend */
-dbHandle* cacheCon = theManager->getConnection();
+dbHandle* cacheCon = localDBHandle;
 
 /* Grab the languages table */
 std::stringstream langQuery;
index 78dfbeec296b4a560a45ad541b430c3e5e2b63ae..c36568f9b14b9c6dac7fc805b009464213a202a1 100644 (file)
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
  * USA.
  *
- * $Id: sqlManager.cc,v 1.5 2007/08/28 16:10:25 dan_karrels Exp $
+ * $Id: sqlManager.cc,v 1.6 2009/01/15 08:31:07 denspike Exp $
  */
 
 #include <new>
 #include <iostream>
 
 #include <cassert>
+#include <cstdlib>
 
 #include "gnuworld_config.h"
 #include "ELog.h"