From e68bfed5ea95fd3e5b436ed062f50efb702cc9eb Mon Sep 17 00:00:00 2001 From: kstailey Date: Sat, 9 Nov 1996 19:59:36 +0000 Subject: optional size argument to hash command --- usr.bin/ftp/ftp_var.h | 3 ++- usr.bin/ftp/main.c | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/ftp/ftp_var.h b/usr.bin/ftp/ftp_var.h index d58f30e77af..45570ef62ed 100644 --- a/usr.bin/ftp/ftp_var.h +++ b/usr.bin/ftp/ftp_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ftp_var.h,v 1.4 1996/10/31 14:36:56 mickey Exp $ */ +/* $OpenBSD: ftp_var.h,v 1.5 1996/11/09 19:59:35 kstailey Exp $ */ /* $NetBSD: ftp_var.h,v 1.7 1995/09/15 00:32:35 pk Exp $ */ /* @@ -50,6 +50,7 @@ */ int trace; /* trace packets exchanged */ int hash; /* print # for each buffer transferred */ +int mark; /* number of bytes between hashes */ int sendport; /* use PORT cmd for each data connection */ int verbose; /* print messages coming back from server */ int connected; /* connected to server */ diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c index a8c618ef680..394dfc82ca0 100644 --- a/usr.bin/ftp/main.c +++ b/usr.bin/ftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.7 1996/10/31 14:36:57 mickey Exp $ */ +/* $OpenBSD: main.c,v 1.8 1996/11/09 19:58:59 kstailey Exp $ */ /* * Copyright (c) 1985, 1989, 1993, 1994 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 10/9/94"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.7 1996/10/31 14:36:57 mickey Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.8 1996/11/09 19:58:59 kstailey Exp $"; #endif #endif /* not lint */ @@ -70,6 +70,8 @@ static char rcsid[] = "$OpenBSD: main.c,v 1.7 1996/10/31 14:36:57 mickey Exp $"; #include "ftp_var.h" +#define HASHBYTES 1024 /* default buffer size for drawing hash marks */ + int main(argc, argv) int argc; @@ -86,6 +88,7 @@ main(argc, argv) doglob = 1; interactive = 1; autologin = 1; + mark = HASHBYTES; while ((ch = getopt(argc, argv, "p:r:dgintv")) != EOF) { switch (ch) { -- cgit v1.2.3