aboutsummaryrefslogtreecommitdiffstats
path: root/progress.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2004-04-03 06:19:22 +0000
committerlukem <lukem@NetBSD.org>2004-04-03 06:19:22 +0000
commita8edcff75598aec0dbe14c2054d0381918877049 (patch)
tree2c11352b2855efdabb3ee7cc5f7ae08af8e44aae /progress.c
parent369a20cb99bc40983a3528a47914c7253e97dbed (diff)
downloadbsd-progress-a8edcff75598aec0dbe14c2054d0381918877049.tar.gz
bsd-progress-a8edcff75598aec0dbe14c2054d0381918877049.tar.zst
bsd-progress-a8edcff75598aec0dbe14c2054d0381918877049.zip
Support strsuftoll(3) suffixes for '-l length'.
Provide an example of copying raw disks using dd, with a progress bar.
Diffstat (limited to 'progress.c')
-rw-r--r--progress.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/progress.c b/progress.c
index eaa3314..d08c5d4 100644
--- a/progress.c
+++ b/progress.c
@@ -1,4 +1,4 @@
-/* $NetBSD: progress.c,v 1.8 2004/03/09 17:04:24 hubertf Exp $ */
+/* $NetBSD: progress.c,v 1.9 2004/04/03 06:19:22 lukem Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: progress.c,v 1.8 2004/03/09 17:04:24 hubertf Exp $");
+__RCSID("$NetBSD: progress.c,v 1.9 2004/04/03 06:19:22 lukem Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -105,7 +105,8 @@ main(int argc, char *argv[])
break;
case 'l':
lflag++;
- filesize = strtoull(optarg, NULL, 0);
+ filesize = strsuftoll("input size", optarg, 0,
+ LLONG_MAX);
break;
case 'p':
prefix = optarg;