From 76a5d8c68d61ec1328aa8d8d6e7b5eac4fe9fb12 Mon Sep 17 00:00:00 2001 From: lum Date: Tue, 23 Mar 2021 18:40:29 +0000 Subject: [PATCH] Use a pointer called bufp to point to a buffer called bufn consistantly. --- usr.bin/mg/buffer.c | 8 ++++---- 1 file 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) -- 2.20.1