Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/ftp Make this compile on sparc64 (size_t != int).



details:   https://anonhg.NetBSD.org/src/rev/5a776ba8ec16
branches:  trunk
changeset: 581009:5a776ba8ec16
user:      jdc <jdc%NetBSD.org@localhost>
date:      Fri May 20 06:13:23 2005 +0000

description:
Make this compile on sparc64 (size_t != int).

diffstat:

 usr.bin/ftp/main.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r a007fa9d1bd5 -r 5a776ba8ec16 usr.bin/ftp/main.c
--- a/usr.bin/ftp/main.c        Fri May 20 01:28:13 2005 +0000
+++ b/usr.bin/ftp/main.c        Fri May 20 06:13:23 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.95 2005/05/19 03:05:04 lukem Exp $  */
+/*     $NetBSD: main.c,v 1.96 2005/05/20 06:13:23 jdc Exp $    */
 
 /*-
  * Copyright (c) 1996-2004 The NetBSD Foundation, Inc.
@@ -104,7 +104,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.6 (Berkeley) 10/9/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.95 2005/05/19 03:05:04 lukem Exp $");
+__RCSID("$NetBSD: main.c,v 1.96 2005/05/20 06:13:23 jdc Exp $");
 #endif
 #endif /* not lint */
 
@@ -670,7 +670,8 @@
                        HistEvent ev;
                        cursor_pos = NULL;
 
-                       buf = el_gets(el, &num);
+                       buf = el_gets(el, &ch);
+                       num = ch;
                        if (buf == NULL || num == 0) {
                                if (fromatty)
                                        putc('\n', ttyout);



Home | Main Index | Thread Index | Old Index