diff options
author | lum <lum@openbsd.org> | 2021-03-23 18:40:29 +0000 |
---|---|---|
committer | lum <lum@openbsd.org> | 2021-03-23 18:40:29 +0000 |
commit | 76a5d8c68d61ec1328aa8d8d6e7b5eac4fe9fb12 (patch) | |
tree | c21cc5d1eea51436c78830bd75e2c1f03ce71c4b /usr.bin | |
parent | Correct how many arguments some functions take for interpreter.c. (diff) | |
download | wireguard-openbsd-76a5d8c68d61ec1328aa8d8d6e7b5eac4fe9fb12.tar.xz wireguard-openbsd-76a5d8c68d61ec1328aa8d8d6e7b5eac4fe9fb12.zip |
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) |