summaryrefslogtreecommitdiff
path: root/www/htdig-devel/patches/patch-af
blob: dca8534383683e3f58a0aa15b42e6d22be0c6ff9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-af,v 1.2 2008/01/14 09:46:45 yyamano Exp $

--- htsearch/htsearch.cc.orig	2004-05-28 22:15:24.000000000 +0900
+++ htsearch/htsearch.cc
@@ -68,7 +68,7 @@ StringList              collectionList; 
 // reconised word prefixes (for field-restricted search and per-word fuzzy
 // algorithms) in *descending* alphabetical order.
 // Don't use a dictionary structure, as setup time outweights saving.
-struct {char *name; unsigned int flag; } colonPrefix [] =
+static struct {char *name; unsigned int flag; } colonPrefix [] =
 {
     { "url",     FLAG_URL },
     { "title",   FLAG_TITLE },
@@ -211,8 +211,7 @@ main(int ac, char **av)
 	}
 	if (access((char*)configFile, R_OK) < 0)
 	{
-	    reportError(form("Unable to read configuration file '%s'",
-			     configFile.get()));
+	    reportError(form("Unable to read configuration file."));
 	}
 	config->Read(configFile);