Thu Jun 27 09:14:39 2002 Michael Jennings (mej)

Fix compile when Escreen support is disabled.


SVN revision: 6332
This commit is contained in:
Michael Jennings 2002-06-27 13:14:56 +00:00
parent d0cbe0001c
commit 94b2b06ff8
2 changed files with 10 additions and 6 deletions

View File

@ -4739,3 +4739,7 @@ Wed Jun 26 23:14:20 2002 Michael Jennings (mej)
Bug-hunting....
----------------------------------------------------------------------
Thu Jun 27 09:14:39 2002 Michael Jennings (mej)
Fix compile when Escreen support is disabled.
----------------------------------------------------------------------

View File

@ -2083,15 +2083,15 @@ ns_statement(_ns_sess * s, char *c)
y = x = s->escape;
if (!c || !*c) {
(void) ns_inp_dial(s, "Enter a command to send to the \"screen\" program", 64, &i, ns_inp_tab);
if (!i || !*i)
return NS_FAIL;
}
switch (s->backend) {
#ifdef NS_HAVE_SCREEN
case NS_MODE_SCREEN:
if (!c || !*c) {
(void) ns_inp_dial(s, "Enter a command to send to the \"screen\" program", 64, &i, ns_inp_tab);
if (!i || !*i)
return NS_FAIL;
}
if ((ret = ns_parse_screen_cmd(s, i ? i : c, NS_ESC_INTERACTIVE)) == NS_SUCC) {
if (s->escape != x) {
y = s->escape;