Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Update some dead (#if 0'd) code that is never called to



details:   https://anonhg.NetBSD.org/src/rev/a0f93145072a
branches:  trunk
changeset: 838282:a0f93145072a
user:      kre <kre%NetBSD.org@localhost>
date:      Wed Jan 09 11:04:54 2019 +0000

description:
Update some dead (#if 0'd) code that is never called to
cope with the changes made in the previous revision, in an
attempt to avoid bit rot.

Untested (uncompiled) - though it should work.

NFC: this change doesn't get compiled, let alone used.

diffstat:

 bin/sh/input.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r ca1ee798b42b -r a0f93145072a bin/sh/input.c
--- a/bin/sh/input.c    Wed Jan 09 10:59:20 2019 +0000
+++ b/bin/sh/input.c    Wed Jan 09 11:04:54 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: input.c,v 1.64 2018/12/03 06:40:26 kre Exp $   */
+/*     $NetBSD: input.c,v 1.65 2019/01/09 11:04:54 kre Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)input.c    8.3 (Berkeley) 6/9/95";
 #else
-__RCSID("$NetBSD: input.c,v 1.64 2018/12/03 06:40:26 kre Exp $");
+__RCSID("$NetBSD: input.c,v 1.65 2019/01/09 11:04:54 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -150,6 +150,10 @@
                                return NULL;
                        break;
                }
+               if (c == PFAKE) {
+                       ++nleft;
+                       continue;
+               }
                *p++ = c;
                if (c == '\n')
                        break;



Home | Main Index | Thread Index | Old Index