From b8022f50566f39a402d4e9aa04c8960d5519228e Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Wed, 12 Oct 2005 20:16:36 +0000 Subject: [PATCH] fix warning on OpenBSD --- mbcico/emsidat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mbcico/emsidat.c b/mbcico/emsidat.c index f6dc8b18..2769c134 100644 --- a/mbcico/emsidat.c +++ b/mbcico/emsidat.c @@ -333,7 +333,7 @@ int scanemsidat(char *buf) fa_list **tmp, *tmpa; faddr *fa; char *p, *q, *mailer_prod, *mailer_name, *mailer_version, *mailer_serial; - int dupe; + int dupe, ttt; p = sel_brace(buf); if (strcasecmp(p,"EMSI") != 0) { @@ -482,7 +482,8 @@ int scanemsidat(char *buf) now = time(NULL); p=sel_brace(NULL); p=sel_bracket(p); - if (sscanf(p,"%08lx",&tt) == 1) { + if (sscanf(p,"%08x",&ttt) == 1) { + tt = (time_t)ttt; strcpy(ctt,date(sl2mtime(tt))); Syslog('+', "time : %s",ctt); Syslog('+', "tranx : %08lX/%08lX [%ld]", now, sl2mtime(tt), now - sl2mtime(tt));