summaryrefslogtreecommitdiff
path: root/regress/lib/libedit/read
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-05-25 09:28:14 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-05-25 09:28:14 +0000
commit0c2ab6ddf9dc62282240b2e009c08a56ca02fa48 (patch)
tree5e6c6ede6904a27065e908b0983a3c6b5da234ab /regress/lib/libedit/read
parent73c310e840366f437d3fcb845e4d79329dae8350 (diff)
deal with the el_errno -> read_errno cleanup, read.c rev. 1.43
Diffstat (limited to 'regress/lib/libedit/read')
-rw-r--r--regress/lib/libedit/read/test_getcmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/lib/libedit/read/test_getcmd.c b/regress/lib/libedit/read/test_getcmd.c
index 676e74452ab..1cc47fc194c 100644
--- a/regress/lib/libedit/read/test_getcmd.c
+++ b/regress/lib/libedit/read/test_getcmd.c
@@ -42,7 +42,7 @@ main()
if (setlocale(LC_CTYPE, "") == NULL)
err(1, "setlocale");
- el.el_errno = ENOMSG;
+ el.el_read->read_errno = ENOMSG;
el.el_flags = CHARSET_IS_UTF8;
el.el_infd = STDIN_FILENO;
el.el_state.metanext = 0;
@@ -86,8 +86,8 @@ main()
printf("ret(%d)", irc);
break;
}
- if (el.el_errno != 0)
- printf(" el_errno=%d", el.el_errno);
+ if (el.el_read->read_errno != 0)
+ printf(" read_errno=%d", el.el_read->read_errno);
if (ma->level > -1)
printf(" macro[%d]=%ls(%d)", ma->level,
*ma->macro, ma->offset);