diff options
author | Mark Lumsden <lum@cvs.openbsd.org> | 2021-03-23 18:40:30 +0000 |
---|---|---|
committer | Mark Lumsden <lum@cvs.openbsd.org> | 2021-03-23 18:40:30 +0000 |
commit | b1d9d6402f1a8da7b4ca9e8b3449c8508cc8ff85 (patch) | |
tree | 48d4e06911023ee6bbd8f2ee056bb93cd9fbe5e9 /usr.bin | |
parent | 0b49ad7ebafb3a010fc904162c26605faf7879ee (diff) |
Use a pointer called bufp to point to a buffer called bufn
consistantly.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mg/buffer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mg/buffer.c b/usr.bin/mg/buffer.c index 5dd4381d3d9..a5b245a745b 100644 --- a/usr.bin/mg/buffer.c +++ b/usr.bin/mg/buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buffer.c,v 1.110 2021/03/18 18:09:21 lum Exp $ */ +/* $OpenBSD: buffer.c,v 1.111 2021/03/23 18:40:29 lum Exp $ */ /* This file is in the public domain. */ @@ -144,7 +144,7 @@ poptobuffer(int f, int n) return (ABORT); if (bufp[0] == '\0' && curbp->b_altb != NULL) bp = curbp->b_altb; - else if ((bp = bfind(bufn, TRUE)) == NULL) + else if ((bp = bfind(bufp, TRUE)) == NULL) return (FALSE); if (bp == curbp) return (splitwind(f, n)); @@ -178,7 +178,7 @@ killbuffer_cmd(int f, int n) return (ABORT); else if (bufp[0] == '\0') bp = curbp; - else if ((bp = bfind(bufn, FALSE)) == NULL) + else if ((bp = bfind(bufp, FALSE)) == NULL) return (FALSE); ret = killbuffer(bp); eerase(); @@ -782,7 +782,7 @@ bufferinsert(int f, int n) return (ABORT); if (bufp[0] == '\0' && curbp->b_altb != NULL) bp = curbp->b_altb; - else if ((bp = bfind(bufn, FALSE)) == NULL) + else if ((bp = bfind(bufp, FALSE)) == NULL) return (FALSE); if (bp == curbp) |