freebsd-ports/mail/spamprobe/files/patch-src_database_FrequencyCBImpl_pbl.cc
Stefan Walter 9d2cd5b620 - Update databases/libpbl to 1.04, fix compile-time warnings, declare as safe
for parallel building and run bundled self-tests after building.
- Patch mail/spamprobe to make it work with libpbl on amd64.

PR:		130236
Submitted by:	Kenji Rikitake <kenji.rikitake@acm.org>
Patch by:	mi
Approved by:	Zach Thompson <hideo@lastamericanempire.com> (maintainer)
2009-10-06 14:52:01 +00:00

21 lines
568 B
C++

--- src/database/FrequencyDBImpl_pbl.cc 2006-11-17 02:24:48.000000000 -0500
+++ src/database/FrequencyDBImpl_pbl.cc 2009-09-30 16:08:39.000000000 -0400
@@ -45,6 +45,6 @@
const char *FrequencyDBImpl_pbl::SEARCH_SUFFIX("pkey");
-inline int throw_on_error(const char *function_name,
- int rc)
+inline long throw_on_error(const char *function_name,
+ long rc)
{
if (rc >= 0) {
@@ -261,6 +261,6 @@
{
char key[BUFFER_SIZE];
- int keylen = 0;
- int rc = 0;
+ size_t keylen;
+ int rc;
switch (pbl_code) {