diff --git a/src/defs.h b/src/defs.h index 62d20209..e4392a35 100644 --- a/src/defs.h +++ b/src/defs.h @@ -226,7 +226,8 @@ struct session_data { float __acquire, __parsed, __av, __store, __compress, __encrypt; char bodydigest[2*DIGEST_LENGTH+1]; char digest[2*DIGEST_LENGTH+1]; - time_t now, sent, delivered, retained; + time_t now, sent, delivered; + unsigned long retained; char ms_journal; char import; int journal_envelope_length, journal_bottom_length; diff --git a/src/test.c b/src/test.c index e9774f25..67a2d5af 100644 --- a/src/test.c +++ b/src/test.c @@ -112,7 +112,7 @@ int main(int argc, char **argv){ printf("folder: %d\n", get_folder_id_by_rule(&data, &state, st.st_size, sdata.spam_message, &cfg)); - printf("retention period: %ld\n", sdata.retained); + printf("retention period: %lu\n", sdata.retained); clearrules(data.archiving_rules); clearrules(data.retention_rules);