aboutsummaryrefslogtreecommitdiff
path: root/lib/greylist.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/greylist.c')
-rw-r--r--lib/greylist.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/greylist.c b/lib/greylist.c
index 708e21c6..e0a14789 100644
--- a/lib/greylist.c
+++ b/lib/greylist.c
@@ -22,16 +22,16 @@
#include <mailutils/mailutils.h>
#include "libmf.h"
#include "mfdb.h"
-#include "mf-dbm.h"
#include "filenames.h"
static void
-greylist_print_item(const char *key, size_t size,
- const void *content, size_t contsize)
+greylist_print_item(struct mu_dbm_datum const *key,
+ struct mu_dbm_datum const *val)
{
- time_t timestamp = *(time_t*) content;
- size--; /* Size includes the trailing nul */
- printf("%*.*s ", size, size, key);
+ time_t timestamp = *(time_t*) val->mu_dptr;
+ int size = key->mu_dsize - 1; /* Size includes the trailing nul */
+
+ printf("%*.*s ", size, size, key->mu_dptr);
format_time_str(stdout, timestamp);
putchar('\n');
}

Return to:

Send suggestions and report system problems to the System administrator.