reopen 417873 tag 417873 patch thanks On 02/03/2008, Cyril Brulebois wrote: > I can't reproduce it with the current version, closing accordingly. > In case you can still reproduce it, please reopen and slap me in Cc.
My bad. Please find attached a patch to fix this problem. I'll walk through the bugs I've -done'd and reopen where needed. Sorry for the inconvenience. -- Cyril BRulebois
--- a/havp/havp.cpp
+++ b/havp/havp.cpp
@@ -33,6 +33,8 @@
#include <errno.h>
#include <iostream>
+#include <cstdlib>
+
URLList Whitelist;
URLList Blacklist;
bool rereadall = false;
--- a/havp/helper.cpp
+++ b/havp/helper.cpp
@@ -31,6 +31,9 @@
#include <iostream>
#include <fstream>
+#include <cstdlib>
+#include <cstring>
+
extern char TempFileName[MAXSCANTEMPFILELENGTH+1];
extern int fd_tempfile;
--- a/havp/logfile.cpp
+++ b/havp/logfile.cpp
@@ -28,6 +28,8 @@
#include <syslog.h>
#include <map>
+#include <cstring>
+
#define LOGSTRINGLENGTH 1000
int LogFile::Access_fd = -1;
--- a/havp/params.cpp
+++ b/havp/params.cpp
@@ -25,6 +25,8 @@
#include <iostream>
#include <fstream>
+#include <cstdlib>
+
#ifndef INADDR_NONE
#define INADDR_NONE ((unsigned long) -1)
#endif
--- a/havp/proxyhandler.cpp
+++ b/havp/proxyhandler.cpp
@@ -25,6 +25,8 @@
#include <iostream>
#include <fstream>
+#include <cstdlib>
+
extern URLList Whitelist;
extern URLList Blacklist;
extern int LL; //LogLevel
--- a/havp/scannerhandler.cpp
+++ b/havp/scannerhandler.cpp
@@ -44,6 +44,8 @@
#include <fcntl.h>
#include <errno.h>
+#include <cstdlib>
+
extern char TempFileName[MAXSCANTEMPFILELENGTH+1];
extern int fd_tempfile;
--- a/havp/utils.cpp
+++ b/havp/utils.cpp
@@ -22,6 +22,8 @@
#include <errno.h>
#include <time.h>
+#include <cstring>
+
string UpperCase( string CaseString )
{
string::const_iterator si = CaseString.begin();
pgptDgPpwi5cg.pgp
Description: PGP signature

