From 2d8f750e1de9bb3baaedad7d5b8caeea6d1cb4b8 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 20 Jun 2005 19:34:59 +0000 Subject: [PATCH] Compiler warning fixes for FreeBSD --- mbcico/emsidat.c | 2 +- mbcico/hydra.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mbcico/emsidat.c b/mbcico/emsidat.c index becf3ead..311b025d 100644 --- a/mbcico/emsidat.c +++ b/mbcico/emsidat.c @@ -228,7 +228,7 @@ char *mkemsidat(int caller) p=xstrcat(p,flags?emsiencode(flags):(char *)""); p=xstrcat(p,(char *)"]}{TRX#}{["); tt = time(NULL); - sprintf(cbuf,"%08lX",mtime2sl(tt)); + sprintf(cbuf,"%08lX", (unsigned long)mtime2sl(tt)); p=xstrcat(p,cbuf); p=xstrcat(p,(char *)"]}{TZUTC}{["); p=xstrcat(p,gmtoffset(tt)); diff --git a/mbcico/hydra.c b/mbcico/hydra.c index c8f9ab55..e04748a9 100644 --- a/mbcico/hydra.c +++ b/mbcico/hydra.c @@ -1406,7 +1406,7 @@ int hydra_batch(int role, file_list *to_send) long filesize; char dosname[8 + 1 + 3 + 1], *Name; - sscanf(rxbuf, "%08lx%08lx%*08x%*08x%*08x", ×tamp, &filesize); + sscanf(rxbuf, "%08lx%08lx%*08x%*08x%*08x", ×tamp, &filesize); /* convert timestamp to UNIX time */ orgstamp = timestamp;