summaryrefslogtreecommitdiff
path: root/www/logtools/files
diff options
context:
space:
mode:
Diffstat (limited to 'www/logtools/files')
-rw-r--r--www/logtools/files/patch-clfdomainsplit.cpp31
-rw-r--r--www/logtools/files/patch-clfmerge.cpp44
-rw-r--r--www/logtools/files/patch-clfsplit.cpp6
3 files changed, 26 insertions, 55 deletions
diff --git a/www/logtools/files/patch-clfdomainsplit.cpp b/www/logtools/files/patch-clfdomainsplit.cpp
index 753703f1aa4a..c813ba9c3528 100644
--- a/www/logtools/files/patch-clfdomainsplit.cpp
+++ b/www/logtools/files/patch-clfdomainsplit.cpp
@@ -1,19 +1,12 @@
---- clfdomainsplit.cpp.orig Mon Jun 9 10:56:27 2003
-+++ clfdomainsplit.cpp Mon Jun 9 10:56:47 2003
-@@ -1,19 +1,23 @@
+--- clfdomainsplit.cpp.orig 2016-12-25 15:08:38 UTC
++++ clfdomainsplit.cpp
+@@ -1,15 +1,18 @@
-#include <stdio.h>
+-
+#include <cstdio>
-
--#if (__GNUC__ >= 3)
--#include <ext/hash_map>
-+#if defined(_LIBCPP_VERSION)
-+#include <unordered_map>
- #else
--#include <hash_map>
-+#include <ext/hash_map>
- #endif
-
+#include <cstdlib>
+ #include <unordered_map>
+
#include <unistd.h>
#include <cstring>
#include <vector>
@@ -29,15 +22,3 @@
// MAX_FDS is the maximum number of files that will be directly written to
// by one process
-@@ -166,7 +170,11 @@
- size_t operator()(const string str) const { return hash<const char *>()(str.c_str()); }
- };
-
-+#if defined(_LIBCPP_VERSION)
-+typedef unordered_map<const string, FILE **, hash_string, eqstr> HASH_TYPE;
-+#else
- typedef hash_map<const string, FILE **, hash_string, eqstr> HASH_TYPE;
-+#endif
- HASH_TYPE fd_map;
-
- typedef FILE * PFILE;
diff --git a/www/logtools/files/patch-clfmerge.cpp b/www/logtools/files/patch-clfmerge.cpp
index 017e4814186b..0da7c312340f 100644
--- a/www/logtools/files/patch-clfmerge.cpp
+++ b/www/logtools/files/patch-clfmerge.cpp
@@ -1,16 +1,10 @@
---- clfmerge.cpp.orig Tue Jan 8 17:15:37 2002
-+++ clfmerge.cpp Tue Jan 8 17:14:06 2002
-@@ -1,17 +1,26 @@
+--- clfmerge.cpp.orig 2016-12-25 14:50:06 UTC
++++ clfmerge.cpp
+@@ -1,17 +1,20 @@
-#include <stdio.h>
+#include <cstdio>
-+
-+#if defined(_LIBCPP_VERSION)
-+#include <unordered_map>
-+#else
- #include <ext/hash_map>
+ #include <unordered_map>
-#include <stdlib.h>
-+#endif
-+
+#include <cstdlib>
#include <map>
#include <cstring>
@@ -28,26 +22,22 @@
using namespace __gnu_cxx;
+#endif
- struct eqstr
- {
-@@ -19,7 +28,11 @@
- { return strcmp(s1, s2) == 0; }
- };
-
-+#if defined(_LIBCPP_VERSION)
-+unordered_map<const char *, const char *, hash<const char *>, eqstr> months;
-+#else
- hash_map<const char *, const char *, hash<const char *>, eqstr> months;
-+#endif
-
- class LogFile
- {
-@@ -207,7 +220,7 @@
+ struct hashing_func {
+ unsigned long operator()(const char *key) const
+@@ -215,7 +218,7 @@ int main(int argc, char **argv)
unsigned int map_items = 0;
- bool set_map_items = false, domain_mangling = false;
+ bool set_map_items = false, domain_mangling = false, verbose = false;
int int_c;
- optind = 0;
+ optind = 1;
- while(-1 != (int_c = getopt(argc, argv, "b:hd")) )
+ while(-1 != (int_c = getopt(argc, argv, "b:hdv")) )
{
switch(char(int_c))
+@@ -350,6 +353,6 @@ int main(int argc, char **argv)
+ } while(!items[0]->getLine());
+ }
+ }
+- delete items;
++ delete[] items;
+ return 0;
+ }
diff --git a/www/logtools/files/patch-clfsplit.cpp b/www/logtools/files/patch-clfsplit.cpp
index 3bc487017665..bde4be935f76 100644
--- a/www/logtools/files/patch-clfsplit.cpp
+++ b/www/logtools/files/patch-clfsplit.cpp
@@ -1,6 +1,6 @@
---- clfsplit.cpp.orig Tue Jan 8 17:41:53 2002
-+++ clfsplit.cpp Tue Jan 8 17:41:18 2002
-@@ -199,7 +199,7 @@
+--- clfsplit.cpp.orig 2008-06-06 05:33:52 UTC
++++ clfsplit.cpp
+@@ -203,7 +203,7 @@ int main(int argc, char **argv)
MAP m;
FILE *input = stdin;
bool new_input = false;