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: fix local variable names in check_...



details:   https://anonhg.NetBSD.org/src/rev/c8ed6c0ce540
branches:  trunk
changeset: 950287:c8ed6c0ce540
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jan 24 10:57:17 2021 +0000

description:
lint: fix local variable names in check_pointer_comparison

diffstat:

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

diffs (41 lines):

diff -r 2042523d7f10 -r c8ed6c0ce540 usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c        Sun Jan 24 10:55:11 2021 +0000
+++ b/usr.bin/xlint/lint1/tree.c        Sun Jan 24 10:57:17 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tree.c,v 1.187 2021/01/24 10:55:11 rillig Exp $        */
+/*     $NetBSD: tree.c,v 1.188 2021/01/24 10:57:17 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.187 2021/01/24 10:55:11 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.188 2021/01/24 10:57:17 rillig Exp $");
 #endif
 
 #include <float.h>
@@ -1503,7 +1503,7 @@
 {
        type_t  *ltp, *rtp;
        tspec_t lst, rst;
-       const   char *lts, *rts;
+       const   char *lsts, *rsts;
 
        lst = (ltp = ln->tn_type)->t_subt->t_tspec;
        rst = (rtp = rn->tn_type)->t_subt->t_tspec;
@@ -1511,10 +1511,10 @@
        if (lst == VOID || rst == VOID) {
                if (sflag && (lst == FUNC || rst == FUNC)) {
                        /* (void *)0 already handled in typeok() */
-                       *(lst == FUNC ? &lts : &rts) = "function pointer";
-                       *(lst == VOID ? &lts : &rts) = "'void *'";
+                       *(lst == FUNC ? &lsts : &rsts) = "function pointer";
+                       *(lst == VOID ? &lsts : &rsts) = "'void *'";
                        /* ANSI C forbids comparison of %s with %s */
-                       warning(274, lts, rts);
+                       warning(274, lsts, rsts);
                }
                return;
        }



Home | Main Index | Thread Index | Old Index