diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1996-11-09 19:59:36 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1996-11-09 19:59:36 +0000 |
commit | e68bfed5ea95fd3e5b436ed062f50efb702cc9eb (patch) | |
tree | f2b3be27efe9619c963dbe00aee7dd08cae764ab /usr.bin | |
parent | 50edce0468c745b901629e43e7f77d249e9ccf1a (diff) |
optional size argument to hash command
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ftp/ftp_var.h | 3 | ||||
-rw-r--r-- | usr.bin/ftp/main.c | 7 |
2 files changed, 7 insertions, 3 deletions
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) { |