diff options
Diffstat (limited to 'textproc/htdig/files')
-rw-r--r-- | textproc/htdig/files/patch-config-xss | 24 | ||||
-rw-r--r-- | textproc/htdig/files/patch-db_mut__pthread.c | 15 | ||||
-rw-r--r-- | textproc/htdig/files/patch-htsearch_Collection.h | 14 | ||||
-rw-r--r-- | textproc/htdig/files/patch-htsearch_Display.cc | 20 |
4 files changed, 0 insertions, 73 deletions
diff --git a/textproc/htdig/files/patch-config-xss b/textproc/htdig/files/patch-config-xss deleted file mode 100644 index 32a044a7b3f1..000000000000 --- a/textproc/htdig/files/patch-config-xss +++ /dev/null @@ -1,24 +0,0 @@ ---- htsearch/htsearch.cc.orig Fri May 28 06:15:24 2004 -+++ htsearch/htsearch.cc Mon Sep 12 23:16:06 2005 -@@ -211,8 +211,7 @@ - } - if (access((char*)configFile, R_OK) < 0) - { -- reportError(form("Unable to read configuration file '%s'", -- configFile.get())); -+ reportError("Unable to read configuration file"); - } - config->Read(configFile); - ---- htsearch/qtest.cc.orig Fri May 28 06:15:25 2004 -+++ htsearch/qtest.cc Mon Sep 12 23:19:49 2005 -@@ -132,8 +132,7 @@ - - if (access((char*)configFile, R_OK) < 0) - { -- reportError(form("Unable to find configuration file '%s'", -- configFile.get())); -+ reportError("Unable to find configuration file"); - } - - config->Read(configFile); diff --git a/textproc/htdig/files/patch-db_mut__pthread.c b/textproc/htdig/files/patch-db_mut__pthread.c deleted file mode 100644 index 1deafc8940ba..000000000000 --- a/textproc/htdig/files/patch-db_mut__pthread.c +++ /dev/null @@ -1,15 +0,0 @@ ---- db/mut_pthread.c.orig 2002-02-02 18:18:05 UTC -+++ db/mut_pthread.c -@@ -201,7 +201,11 @@ CDB___db_pthread_mutex_lock(mutexp) - * call, and Solaris delivers the signal to the wrong - * LWP. - */ -- if (ret != 0 && ret != ETIME && ret != ETIMEDOUT) -+ if (ret != 0 && -+#ifndef __FreeBSD__ -+ ret != ETIME && -+#endif -+ ret != ETIMEDOUT) - return (ret); - } - diff --git a/textproc/htdig/files/patch-htsearch_Collection.h b/textproc/htdig/files/patch-htsearch_Collection.h deleted file mode 100644 index d2b25ad32897..000000000000 --- a/textproc/htdig/files/patch-htsearch_Collection.h +++ /dev/null @@ -1,14 +0,0 @@ ---- htsearch/Collection.h.orig Fri May 28 06:15:24 2004 -+++ htsearch/Collection.h Mon Dec 18 00:17:56 2006 -@@ -36,9 +36,9 @@ - const char *docExcerpt); - ~Collection(); - -- void Collection::Open(); -+ void Open(); - -- void Collection::Close(); -+ void Close(); - - char *getWordFile() { return wordFile.get(); } - DocumentRef *getDocumentRef(int id); diff --git a/textproc/htdig/files/patch-htsearch_Display.cc b/textproc/htdig/files/patch-htsearch_Display.cc deleted file mode 100644 index 4ecb7c6fdd02..000000000000 --- a/textproc/htdig/files/patch-htsearch_Display.cc +++ /dev/null @@ -1,20 +0,0 @@ ---- htsearch/Display.cc.orig 2023-04-10 13:24:24 UTC -+++ htsearch/Display.cc -@@ -42,7 +42,7 @@ using namespace std; - #endif /* HAVE_STD */ - - #include <stdio.h> --#include <stdlib.h> // for abs -+#include <math.h> // for fabs - #include <ctype.h> - - #ifndef _MSC_VER /* _WIN32 */ -@@ -1541,7 +1541,7 @@ Display::buildMatchList() - // seconds in a 365 days year). The formula gives less weight - // as the distance between the date document and the current time - // increases (the absolute value is for documents with future date) --#define DATE_FACTOR(df, n, dd) ((df) * 100 / (1+(double)(abs((n) - (dd)) / 31536000))) -+#define DATE_FACTOR(df, n, dd) ((df) * 100 / (1+(double)(fabs((n) - (dd)) / 31536000))) - date_score = DATE_FACTOR(date_factor, now, thisRef->DocTime()); - score += date_score; - } |