From a8edcff75598aec0dbe14c2054d0381918877049 Mon Sep 17 00:00:00 2001 From: lukem Date: Sat, 3 Apr 2004 06:19:22 +0000 Subject: Support strsuftoll(3) suffixes for '-l length'. Provide an example of copying raw disks using dd, with a progress bar. --- progress.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'progress.c') 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 #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 @@ -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; -- cgit v1.2.3-56-ge451