$NetBSD: patch-ao,v 1.2 2001/02/21 18:50:37 tv Exp $ --- ifcico/emsidat.c.orig Sun Mar 7 15:42:34 1999 +++ ifcico/emsidat.c Wed Feb 21 10:47:56 2001 @@ -110,7 +110,7 @@ p=xstrcat(p,reldate); p=xstrcat(p,"}{TRX#}{["); (void)time(&tt); - sprintf(cbuf,"%08lX",mtime2sl(tt)); + sprintf(cbuf,"%08lX",(unsigned long)mtime2sl(tt)); p=xstrcat(p,cbuf); p=xstrcat(p,"]}{TZUTC}{["); p=xstrcat(p,gmtoffset(tt)); @@ -130,7 +130,7 @@ p=xstrcat(p,flags?flags:""); p=xstrcat(p,"]}"); - sprintf(cbuf,"%04X",strlen(p+12)); + sprintf(cbuf,"%04X",(unsigned)strlen(p+12)); memcpy(p+8,cbuf,4); debug(DBG_HANDSHAKE, "prepared: \"%s\"",p); return p; @@ -355,7 +355,7 @@ } else if (strcasecmp(p,"TRX#") == 0) { - time_t tt; + unsigned long tt; char ctt[32]; p=sel_brace(NULL);