Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ftp Printf field widths and size_t don't always mix ...



details:   https://anonhg.NetBSD.org/src/rev/59452a634ad7
branches:  trunk
changeset: 581012:59452a634ad7
user:      he <he%NetBSD.org@localhost>
date:      Fri May 20 07:26:01 2005 +0000

description:
Printf field widths and size_t don't always mix well, so cast to int.
Fixes build problem for alpha.

diffstat:

 usr.bin/ftp/progressbar.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5e526156bd84 -r 59452a634ad7 usr.bin/ftp/progressbar.c
--- a/usr.bin/ftp/progressbar.c Fri May 20 07:10:51 2005 +0000
+++ b/usr.bin/ftp/progressbar.c Fri May 20 07:26:01 2005 +0000
@@ -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 @@
                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), "");
                }
        }
 



Home | Main Index | Thread Index | Old Index