Compiler warning fixes for FreeBSD

This commit is contained in:
Michiel Broek 2005-06-20 19:34:59 +00:00
parent d7670ba3ca
commit 2d8f750e1d
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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", &timestamp, &filesize);
sscanf(rxbuf, "%08lx%08lx%*08x%*08x%*08x", &timestamp, &filesize);
/* convert timestamp to UNIX time */
orgstamp = timestamp;