33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
$OpenBSD: patch-src_libspf2_spf_print_c,v 1.1.1.1 2008/01/30 15:58:50 okan Exp $
|
|
--- src/libspf2/spf_print.c.orig Tue Aug 31 12:02:39 2004
|
|
+++ src/libspf2/spf_print.c Thu Jan 24 21:55:04 2008
|
|
@@ -54,12 +54,12 @@ SPF_record_print(SPF_record_t *spf_record)
|
|
return SPF_E_SUCCESS;
|
|
}
|
|
|
|
- SPF_infof( "SPF header: version: %d mech %d/%d mod %d/%d len=%d",
|
|
+ SPF_infof( "SPF header: version: %d mech %d/%u mod %d/%u len=%u",
|
|
spf_record->version,
|
|
- spf_record->num_mech, spf_record->mech_len,
|
|
- spf_record->num_mod, spf_record->mod_len,
|
|
- sizeof(SPF_record_t) + spf_record->mech_len
|
|
- + spf_record->mod_len);
|
|
+ (int)spf_record->num_mech, (unsigned int)spf_record->mech_len,
|
|
+ (int)spf_record->num_mod, (unsigned int)spf_record->mod_len,
|
|
+ (unsigned int)(sizeof(SPF_record_t) + spf_record->mech_len
|
|
+ + spf_record->mod_len));
|
|
|
|
err = SPF_record_stringify(spf_record, &prt_buf, &prt_len);
|
|
if ( err == SPF_E_RESULT_UNKNOWN )
|
|
@@ -81,7 +81,7 @@ SPF_record_print(SPF_record_t *spf_record)
|
|
void SPF_print_sizeof(void)
|
|
{
|
|
// SPF_infof( "sizeof(SPF_rec_header_t)=%u", sizeof(SPF_rec_header_t));
|
|
- SPF_infof( "sizeof(SPF_mech_t)=%u", sizeof(SPF_mech_t));
|
|
- SPF_infof( "sizeof(SPF_data_t)=%u", sizeof(SPF_data_t));
|
|
- SPF_infof( "sizeof(SPF_mod_t)=%u", sizeof(SPF_mod_t));
|
|
+ SPF_infof( "sizeof(SPF_mech_t)=%u", (unsigned int)sizeof(SPF_mech_t));
|
|
+ SPF_infof( "sizeof(SPF_data_t)=%u", (unsigned int)sizeof(SPF_data_t));
|
|
+ SPF_infof( "sizeof(SPF_mod_t)=%u", (unsigned int)sizeof(SPF_mod_t));
|
|
}
|