Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit remove unrecheable code (Kamil Dudka)
details: https://anonhg.NetBSD.org/src/rev/ab18c3201e75
branches: trunk
changeset: 771295:ab18c3201e75
user: christos <christos%NetBSD.org@localhost>
date: Fri Nov 18 20:22:03 2011 +0000
description:
remove unrecheable code (Kamil Dudka)
diffstat:
lib/libedit/el.c | 17 ++++-------------
1 files changed, 4 insertions(+), 13 deletions(-)
diffs (38 lines):
diff -r f253e8767fe4 -r ab18c3201e75 lib/libedit/el.c
--- a/lib/libedit/el.c Fri Nov 18 20:21:41 2011 +0000
+++ b/lib/libedit/el.c Fri Nov 18 20:22:03 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: el.c,v 1.68 2011/07/29 15:16:33 christos Exp $ */
+/* $NetBSD: el.c,v 1.69 2011/11/18 20:22:03 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)el.c 8.2 (Berkeley) 1/3/94";
#else
-__RCSID("$NetBSD: el.c,v 1.68 2011/07/29 15:16:33 christos Exp $");
+__RCSID("$NetBSD: el.c,v 1.69 2011/11/18 20:22:03 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -423,17 +423,8 @@
if ((argv[i] = va_arg(ap, char *)) == NULL)
break;
- switch (op) {
- case EL_GETTC:
- argv[0] = name;
- rv = terminal_gettc(el, i, argv);
- break;
-
- default:
- rv = -1;
- EL_ABORT((el->el_errfile, "Bad op %d\n", op));
- break;
- }
+ argv[0] = name;
+ rv = terminal_gettc(el, i, argv);
break;
}
Home |
Main Index |
Thread Index |
Old Index