From d0c085aa9468222773e0c96154f45657ec6f8fe1 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Tue, 30 Mar 2004 20:50:24 +0000 Subject: [PATCH] NetBSD compile cleanups --- lib/diesel.c | 2 +- mbcico/zmrecv.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/diesel.c b/lib/diesel.c index b73bbe39..37a540d3 100644 --- a/lib/diesel.c +++ b/lib/diesel.c @@ -1259,7 +1259,7 @@ Mfunc(f_strlen) ArgCount(1, 1); Sarg(str, 0); - Rint(strlen(str)); + Rint((int)strlen(str)); } /* @(STRSTR,,) -- Find a substring in a string */ diff --git a/mbcico/zmrecv.c b/mbcico/zmrecv.c index c1714638..5ff8d23d 100644 --- a/mbcico/zmrecv.c +++ b/mbcico/zmrecv.c @@ -45,7 +45,7 @@ static FILE *fout=NULL; static int Usevhdrs; -static long rxbytes; +static off_t rxbytes; static int Eofseen; /* indicates cpm eof (^Z) has been received */ static int errors; static long sbytes; @@ -507,7 +507,7 @@ int procheader(char *Name) strcpy(ctt,date(Modtime)); Syslog('+', "Zmodem: \"%s\" %ld bytes, %s mode %o", Name, Bytesleft, ctt, Filemode); - fout = openfile(Name,Modtime,Bytesleft,&(long)(rxbytes),resync); + fout = openfile(Name,Modtime,Bytesleft,&rxbytes,resync); gettimeofday(&starttime, &tz); sbytes = rxbytes;