diff options
author | lukem <lukem@NetBSD.org> | 2005-05-19 03:05:04 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 2005-05-19 03:05:04 +0000 |
commit | 3f59cf494736f6bbdc057e16c741f8dfcb9857d1 (patch) | |
tree | 64367472cafe13a6241c6dd58e649ffdda034d5d | |
parent | a4c933164098a3a4850471590a44bc3232ed5f63 (diff) | |
download | bsd-progress-3f59cf494736f6bbdc057e16c741f8dfcb9857d1.tar.gz bsd-progress-3f59cf494736f6bbdc057e16c741f8dfcb9857d1.tar.zst bsd-progress-3f59cf494736f6bbdc057e16c741f8dfcb9857d1.zip |
Use size_t instead of int where appropriate.
-rw-r--r-- | progressbar.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/progressbar.c b/progressbar.c index 717b032..931e01b 100644 --- a/progressbar.c +++ b/progressbar.c @@ -1,4 +1,4 @@ -/* $NetBSD: progressbar.c,v 1.7 2005/04/11 01:49:31 lukem Exp $ */ +/* $NetBSD: progressbar.c,v 1.8 2005/05/19 03:05:04 lukem Exp $ */ /*- * Copyright (c) 1997-2003 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: progressbar.c,v 1.7 2005/04/11 01:49:31 lukem Exp $"); +__RCSID("$NetBSD: progressbar.c,v 1.8 2005/05/19 03:05:04 lukem Exp $"); #endif /* not lint */ /* @@ -121,7 +121,8 @@ progressmeter(int flag) struct timeval td; off_t abbrevsize, bytespersec; double elapsed; - int ratio, barlength, i, remaining; + int ratio, i, remaining; + size_t barlength; /* * Work variables for progress bar. @@ -132,7 +133,7 @@ progressmeter(int flag) * these appropriately. */ #endif - int len; + size_t len; char buf[256]; /* workspace for progress bar */ #ifndef NO_PROGRESS #define BAROVERHEAD 43 /* non `*' portion of progress bar */ @@ -296,7 +297,8 @@ ptransfer(int siginfo) struct timeval now, td, wait; double elapsed; off_t bytespersec; - int remaining, hh, i, len; + int remaining, hh, i; + size_t len; char buf[256]; /* Work variable for transfer status. */ |