Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit remove unused variable



details:   https://anonhg.NetBSD.org/src/rev/c77675f33f97
branches:  trunk
changeset: 354748:c77675f33f97
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jun 27 23:24:19 2017 +0000

description:
remove unused variable

diffstat:

 lib/libedit/read.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 44caa818b73d -r c77675f33f97 lib/libedit/read.c
--- a/lib/libedit/read.c        Tue Jun 27 23:23:48 2017 +0000
+++ b/lib/libedit/read.c        Tue Jun 27 23:24:19 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: read.c,v 1.102 2016/12/11 15:47:06 christos Exp $      */
+/*     $NetBSD: read.c,v 1.103 2017/06/27 23:24:19 christos Exp $      */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)read.c     8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: read.c,v 1.102 2016/12/11 15:47:06 christos Exp $");
+__RCSID("$NetBSD: read.c,v 1.103 2017/06/27 23:24:19 christos Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -229,10 +229,9 @@
 {
        static const wchar_t meta = (wchar_t)0x80;
        el_action_t cmd;
-       int num;
 
        do {
-               if ((num = el_wgetc(el, ch)) != 1)
+               if (el_wgetc(el, ch) != 1)
                        return -1;
 
 #ifdef KANJI



Home | Main Index | Thread Index | Old Index