Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 lint: rename confusing local variable



details:   https://anonhg.NetBSD.org/src/rev/f9e7fd72316a
branches:  trunk
changeset: 959860:f9e7fd72316a
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Feb 27 15:26:30 2021 +0000

description:
lint: rename confusing local variable

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

No functional change.

diffstat:

 usr.bin/xlint/lint1/tree.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 1a578ec22639 -r f9e7fd72316a usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c        Sat Feb 27 14:54:55 2021 +0000
+++ b/usr.bin/xlint/lint1/tree.c        Sat Feb 27 15:26:30 2021 +0000
@@ -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 @@
 {
        mod_t   *mp;
        tnode_t *ntn;
-       type_t  *rtp;
+       type_t  *rettp;
 
        mp = &modtab[op];
 
@@ -619,10 +619,10 @@
                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;
        }
 



Home | Main Index | Thread Index | Old Index