summaryrefslogtreecommitdiff
path: root/src/os_vms.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-17 23:10:44 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-17 23:10:44 +0000
commita83c3e0ebd573c400e50340d2b85a94e5a0b204b (patch)
tree91d67fdcdce0ba1cd6d9f86a1eb8b7ad11c5fe9f /src/os_vms.c
parentea0cd36bdd0cce5097a53113b626d73bd137b7ef (diff)
downloadvim-git-a83c3e0ebd573c400e50340d2b85a94e5a0b204b.tar.gz
updated for version 7.0227
Diffstat (limited to 'src/os_vms.c')
-rw-r--r--src/os_vms.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/os_vms.c b/src/os_vms.c
index 28976b131..f87a1cd5d 100644
--- a/src/os_vms.c
+++ b/src/os_vms.c
@@ -298,35 +298,35 @@ vms_sys_status(int status)
int
vms_read(char *inbuf, size_t nbytes)
{
- int status, function, len;
- TT_MODE tt_mode;
- ITEM itmlst[2]; /* terminates on everything */
+ int status, function, len;
+ TT_MODE tt_mode;
+ ITEM itmlst[2]; /* terminates on everything */
static long trm_mask[8] = {-1, -1, -1, -1, -1, -1, -1, -1};
/* whatever happened earlier we need an iochan here */
if (!iochan)
- tt_mode = get_tty();
+ tt_mode = get_tty();
/* important: clean the inbuf */
memset(inbuf, 0, nbytes);
/* set up the itemlist for the first read */
vul_item(&itmlst[0], 0, TRM$_MODIFIERS,
- (char *)( TRM$M_TM_NOECHO | TRM$M_TM_NOEDIT |
- TRM$M_TM_NOFILTR | TRM$M_TM_TRMNOECHO |
- TRM$M_TM_NORECALL) , 0);
+ (char *)( TRM$M_TM_NOECHO | TRM$M_TM_NOEDIT |
+ TRM$M_TM_NOFILTR | TRM$M_TM_TRMNOECHO |
+ TRM$M_TM_NORECALL) , 0);
vul_item(&itmlst[1], sizeof(trm_mask), TRM$_TERM, (char *)&trm_mask, 0);
/* wait forever for a char */
function = (IO$_READLBLK | IO$M_EXTEND);
status = sys$qiow(0, iochan, function, &iosb, 0, 0,
- inbuf, nbytes-1, 0, 0, &itmlst, sizeof(itmlst));
+ inbuf, nbytes-1, 0, 0, &itmlst, sizeof(itmlst));
len = strlen(inbuf); /* how many chars we got? */
/* read immedatelly the rest in the IO queue */
function = (IO$_READLBLK | IO$M_TIMED | IO$M_ESCAPE | IO$M_NOECHO | IO$M_NOFILTR);
status = sys$qiow(0, iochan, function, &iosb, 0, 0,
- inbuf+len, nbytes-1-len, 0, 0, 0, 0);
+ inbuf+len, nbytes-1-len, 0, 0, 0, 0);
len = strlen(inbuf); /* return the total length */