diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-04-22 03:09:16 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-04-22 03:09:16 +0000 |
commit | 122337ab3226c070b1553c4ebf575fb9b1954ce4 (patch) | |
tree | 69112a0b3d96f7049a762a59338811d399772c5c /usr.bin/vi/ex/ex_global.c | |
parent | cbe1ecb333fe1665c15c1dbf55df2963ff46f341 (diff) |
Removes unused variables and rename variables shadowing external
variables. No binary change.
Found by lint.
OK otto@ and jaredy@
Diffstat (limited to 'usr.bin/vi/ex/ex_global.c')
-rw-r--r-- | usr.bin/vi/ex/ex_global.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/vi/ex/ex_global.c b/usr.bin/vi/ex/ex_global.c index 0858bebf70d..5e1fb7f7098 100644 --- a/usr.bin/vi/ex/ex_global.c +++ b/usr.bin/vi/ex/ex_global.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ex_global.c,v 1.8 2006/01/08 21:05:40 miod Exp $ */ +/* $OpenBSD: ex_global.c,v 1.9 2006/04/22 03:09:15 ray Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 @@ -74,7 +74,7 @@ ex_g_setup(sp, cmdp, cmd) { CHAR_T *ptrn, *p, *t; EXCMD *ecp; - MARK abs; + MARK abs_mark; RANGE *rp; busy_t btype; recno_t start, end; @@ -160,9 +160,9 @@ usage: ex_emsg(sp, cmdp->cmd->usage, EXM_USAGE); re = &sp->re_c; /* The global commands always set the previous context mark. */ - abs.lno = sp->lno; - abs.cno = sp->cno; - if (mark_set(sp, ABSMARK1, &abs, 1)) + abs_mark.lno = sp->lno; + abs_mark.cno = sp->cno; + if (mark_set(sp, ABSMARK1, &abs_mark, 1)) return (1); /* Get an EXCMD structure. */ |