diff options
author | he <he@NetBSD.org> | 2005-05-20 07:26:01 +0000 |
---|---|---|
committer | he <he@NetBSD.org> | 2005-05-20 07:26:01 +0000 |
commit | 45aef4a2b62e2dd51f9e2a8b85f5b5aa04eaad34 (patch) | |
tree | 9d928676f57c8b0c29860addd5db2c22f107da7c | |
parent | 3f59cf494736f6bbdc057e16c741f8dfcb9857d1 (diff) | |
download | bsd-progress-45aef4a2b62e2dd51f9e2a8b85f5b5aa04eaad34.tar.gz bsd-progress-45aef4a2b62e2dd51f9e2a8b85f5b5aa04eaad34.tar.zst bsd-progress-45aef4a2b62e2dd51f9e2a8b85f5b5aa04eaad34.zip |
Printf field widths and size_t don't always mix well, so cast to int.
Fixes build problem for alpha.
-rw-r--r-- | progressbar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/progressbar.c b/progressbar.c index 931e01b..e9b6366 100644 --- a/progressbar.c +++ b/progressbar.c @@ -1,4 +1,4 @@ -/* $NetBSD: progressbar.c,v 1.8 2005/05/19 03:05:04 lukem Exp $ */ +/* $NetBSD: progressbar.c,v 1.9 2005/05/20 07:26:01 he 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.8 2005/05/19 03:05:04 lukem Exp $"); +__RCSID("$NetBSD: progressbar.c,v 1.9 2005/05/20 07:26:01 he Exp $"); #endif /* not lint */ /* @@ -220,7 +220,7 @@ progressmeter(int flag) if (barlength > 0) { i = barlength * ratio / 100; len += snprintf(buf + len, BUFLEFT, - "|%.*s%*s|", i, stars, barlength - i, ""); + "|%.*s%*s|", i, stars, (int)(barlength - i), ""); } } |