Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/ftp Need to #ifdef around declaration of ch with NO_...



details:   https://anonhg.NetBSD.org/src/rev/bbe539be364c
branches:  trunk
changeset: 581931:bbe539be364c
user:      jmc <jmc%NetBSD.org@localhost>
date:      Fri Jun 10 18:24:15 2005 +0000

description:
Need to #ifdef around declaration of ch with NO_EDITCOMPLETE so this compiles
on rescue/miniroot's

diffstat:

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

diffs (28 lines):

diff -r 942121e170da -r bbe539be364c usr.bin/ftp/main.c
--- a/usr.bin/ftp/main.c        Fri Jun 10 17:48:34 2005 +0000
+++ b/usr.bin/ftp/main.c        Fri Jun 10 18:24:15 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.97 2005/06/10 00:18:46 lukem Exp $  */
+/*     $NetBSD: main.c,v 1.98 2005/06/10 18:24:15 jmc Exp $    */
 
 /*-
  * Copyright (c) 1996-2005 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.97 2005/06/10 00:18:46 lukem Exp $");
+__RCSID("$NetBSD: main.c,v 1.98 2005/06/10 18:24:15 jmc Exp $");
 #endif
 #endif /* not lint */
 
@@ -631,7 +631,9 @@
 {
        struct cmd      *c;
        char            *p;
+#ifndef NO_EDITCOMPLETE
        int              ch;
+#endif
        size_t           num;
 
        for (;;) {



Home | Main Index | Thread Index | Old Index