openbsd-ports/mail/libspf2/patches/patch-src_libspf2_spf_compile_c
okan 1031a7b791 import libspf2
libspf2 is an implementation of the Sender Policy Framework (SPF).

ok jakob@ merdely@
2008-01-30 15:58:49 +00:00

40 lines
1.4 KiB
Plaintext

$OpenBSD: patch-src_libspf2_spf_compile_c,v 1.1.1.1 2008/01/30 15:58:50 okan Exp $
--- src/libspf2/spf_compile.c.orig Wed Feb 23 22:40:31 2005
+++ src/libspf2/spf_compile.c Thu Jan 24 23:09:37 2008
@@ -98,7 +98,7 @@ SPF_mechtype_find(int mech_type)
}
static void
-SPF_c_ensure_capacity(void **datap, int *sizep, int length)
+SPF_c_ensure_capacity(void **datap, size_t *sizep, size_t length)
{
int size = *sizep;
if (length > size)
@@ -435,7 +435,7 @@ SPF_c_parse_var(SPF_response_t *spf_response, SPF_data
static SPF_errcode_t
SPF_c_parse_macro(SPF_server_t *spf_server,
SPF_response_t *spf_response,
- SPF_data_t *data, int *data_len,
+ SPF_data_t *data, size_t *data_len,
const char **startp, const char **endp,
size_t max_len, SPF_errcode_t big_err,
int is_mod)
@@ -470,7 +470,7 @@ SPF_c_parse_macro(SPF_server_t *spf_server,
len = end - p;
if (spf_server->debug)
SPF_debugf("Adding string literal (%d): '%*.*s'",
- len, len, len, p);
+ (int)len, (int)len, (int)len, p);
memcpy( dst, p, len );
ds_len += len;
dst += len;
@@ -551,7 +551,7 @@ SPF_c_parse_macro(SPF_server_t *spf_server,
static SPF_errcode_t
SPF_c_parse_domainspec(SPF_server_t *spf_server,
SPF_response_t *spf_response,
- SPF_data_t *data, int *data_len,
+ SPF_data_t *data, size_t *data_len,
const char **startp, const char **endp,
size_t max_len, SPF_errcode_t big_err,
int cidr_ok, int is_mod)