summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-06-13 08:57:53 +0000
committerjmallett <jmallett@FreeBSD.org>2002-06-13 08:57:53 +0000
commit63759e64673ba443238a3f44a5993fe5a84b957f (patch)
tree0b34fcd944608570b68a75bc84952c2fc21d0099 /usr.bin/make
parent0ca350a1fabe42fbc0edf151825a1cbfaad9a847 (diff)
downloadFreeBSD-src-63759e64673ba443238a3f44a5993fe5a84b957f.zip
FreeBSD-src-63759e64673ba443238a3f44a5993fe5a84b957f.tar.gz
Avoid classy use of a variable one time with a constant value.
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/buf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/make/buf.c b/usr.bin/make/buf.c
index ed43109..26d4890 100644
--- a/usr.bin/make/buf.c
+++ b/usr.bin/make/buf.c
@@ -96,9 +96,8 @@ Buf_OvAddByte (bp, byte)
Buffer bp;
int byte;
{
- int nbytes = 1;
bp->left = 0;
- BufExpand (bp, nbytes);
+ BufExpand (bp, 1);
*bp->inPtr++ = byte;
bp->left--;
OpenPOWER on IntegriCloud