extern int timint, rtimo, nfils, hcflg, xflg, flow, mdmtyp, network;
extern int oopts, omode, oname, opath, nopush, isguest, xcmdsrc, rcdactive;
extern int rejection, moving, fncact, bye_active, urserver, fatalio;
- extern int protocol, prefixing, filcnt, carrier, fnspath, interrupted;
+ extern int protocol, prefixing, carrier, fnspath, interrupted;
+ extern long filcnt;
extern int recursive, inserver, nzxopts, idletmo, srvidl, xfrint;
extern struct ck_p ptab[];
extern int remfile, rempipe, xferstat, filestatus, wearealike, fackpath;
extern int quiet, tsecs, parity, backgrd, nakstate, atcapu, wslotn, winlo;
extern int wslots, success, xitsta, rprintf, discard, cdtimo, keep, fdispla;
extern int timef, stdinf, rscapu, sendmode, epktflg, epktrcvd, epktsent;
- extern int binary, fncnv;
- extern long speed, ffc, crc16, calibrate, dest;
+ extern int binary, fncnv, dest;
+ extern long speed, crc16;
+ CK_OFF_T calibrate, ffc;
#ifdef COMMENT
extern char *TYPCMD, *DIRCMD, *DIRCM2;
#endif /* COMMENT */
static VOID
wheremsg() {
- extern int quiet, filrej;
- int n;
+ extern int quiet;
+ extern long filrej;
+ long n;
n = filcnt - filrej;
debug(F101,"wheremsg n","",n);
switch (myjob) {
case 's':
if (sfspec) {
- printf(" SENT: (%d files)",n);
+ printf(" SENT: (%ld files)",n);
if (srfspec)
printf(" Last: [%s]",srfspec);
printf(" (%s)\r\n", success ? "OK" : "FAILED");
case 'r':
case 'v':
if (rrfspec) {
- printf(" RCVD: (%d files)",n);
+ printf(" RCVD: (%ld files)",n);
if (rfspec)
printf(" Last: [%s]",rfspec);
printf(" (%s)\r\n", success ? "OK" : "FAILED");
ack(); /* If OK, acknowledge */
#endif /* CK_RESEND */
} else { /* Otherwise */
- extern long fsize;
+ extern CK_OFF_T fsize;
char *r;
r = getreason(iattr.reply.val);
ack1((CHAR *)iattr.reply.val); /* refuse to accept the file */