Module Name:    src
Committed By:   rillig
Date:           Sat Feb 27 15:26:30 UTC 2021

Modified Files:
        src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: rename confusing local variable

The variable name rtp is reserved for the type of the right-hand
operand.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.218 -r1.219 src/usr.bin/xlint/lint1/tree.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/lint1/tree.c
diff -u src/usr.bin/xlint/lint1/tree.c:1.218 src/usr.bin/xlint/lint1/tree.c:1.219
--- src/usr.bin/xlint/lint1/tree.c:1.218	Mon Feb 22 15:09:50 2021
+++ src/usr.bin/xlint/lint1/tree.c	Sat Feb 27 15:26:30 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: tree.c,v 1.218 2021/02/22 15:09:50 rillig Exp $	*/
+/*	$NetBSD: tree.c,v 1.219 2021/02/27 15:26:30 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tree.c,v 1.218 2021/02/22 15:09:50 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.219 2021/02/27 15:26:30 rillig Exp $");
 #endif
 
 #include <float.h>
@@ -493,7 +493,7 @@ build(op_t op, tnode_t *ln, tnode_t *rn)
 {
 	mod_t	*mp;
 	tnode_t	*ntn;
-	type_t	*rtp;
+	type_t	*rettp;
 
 	mp = &modtab[op];
 
@@ -619,10 +619,10 @@ build(op_t op, tnode_t *ln, tnode_t *rn)
 		ntn = build_real_imag(op, ln);
 		break;
 	default:
-		rtp = mp->m_returns_bool
+		rettp = mp->m_returns_bool
 		    ? gettyp(Tflag ? BOOL : INT) : ln->tn_type;
 		lint_assert(mp->m_binary || rn == NULL);
-		ntn = new_tnode(op, rtp, ln, rn);
+		ntn = new_tnode(op, rettp, ln, rn);
 		break;
 	}
 

Reply via email to