Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit return !OKCMD on error.
details: https://anonhg.NetBSD.org/src/rev/005822a1dba6
branches: trunk
changeset: 781502:005822a1dba6
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 11 12:31:08 2012 +0000
description:
return !OKCMD on error.
diffstat:
lib/libedit/read.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 0ac3e27aff8e -r 005822a1dba6 lib/libedit/read.c
--- a/lib/libedit/read.c Tue Sep 11 11:58:53 2012 +0000
+++ b/lib/libedit/read.c Tue Sep 11 12:31:08 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: read.c,v 1.68 2012/09/10 20:53:18 christos Exp $ */
+/* $NetBSD: read.c,v 1.69 2012/09/11 12:31:08 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.68 2012/09/10 20:53:18 christos Exp $");
+__RCSID("$NetBSD: read.c,v 1.69 2012/09/11 12:31:08 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -233,7 +233,7 @@
/* read_getcmd():
- * Return next command from the input stream.
+ * Get next command from the input stream, return OKCMD on success.
* Character values > 255 are not looked up in the map, but inserted.
*/
private int
@@ -246,7 +246,7 @@
do {
if ((num = FUN(el,getc)(el, ch)) != 1) {/* if EOF or error */
el->el_errno = num == 0 ? 0 : errno;
- return num;
+ return 0; /* not OKCMD */
}
#ifdef KANJI
Home |
Main Index |
Thread Index |
Old Index