Source-Changes-HG archive

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

[src/netbsd-3]: src/usr.bin/ftp Pull up revision 1.9 (requested by lukem in t...



details:   https://anonhg.NetBSD.org/src/rev/9e3a9ec51005
branches:  netbsd-3
changeset: 576753:9e3a9ec51005
user:      tron <tron%NetBSD.org@localhost>
date:      Sun Jul 24 10:22:59 2005 +0000

description:
Pull up revision 1.9 (requested by lukem in ticket #606):
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 ef17b1288124 -r 9e3a9ec51005 usr.bin/ftp/progressbar.c
--- a/usr.bin/ftp/progressbar.c Sun Jul 24 10:22:41 2005 +0000
+++ b/usr.bin/ftp/progressbar.c Sun Jul 24 10:22:59 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: progressbar.c,v 1.6.2.2 2005/07/24 10:20:30 tron Exp $ */
+/*     $NetBSD: progressbar.c,v 1.6.2.3 2005/07/24 10:22:59 tron 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.6.2.2 2005/07/24 10:20:30 tron Exp $");
+__RCSID("$NetBSD: progressbar.c,v 1.6.2.3 2005/07/24 10:22:59 tron 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