Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/libfdt/dist Avoid shadowing global variable



details:   https://anonhg.NetBSD.org/src/rev/5c2e210c525d
branches:  trunk
changeset: 967779:5c2e210c525d
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Dec 22 12:41:33 2019 +0000

description:
Avoid shadowing global variable

diffstat:

 sys/external/bsd/libfdt/dist/fdt.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r 417edb074d98 -r 5c2e210c525d sys/external/bsd/libfdt/dist/fdt.c
--- a/sys/external/bsd/libfdt/dist/fdt.c        Sun Dec 22 12:38:24 2019 +0000
+++ b/sys/external/bsd/libfdt/dist/fdt.c        Sun Dec 22 12:41:33 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fdt.c,v 1.1.1.3 2019/12/22 12:30:36 skrll Exp $        */
+/*     $NetBSD: fdt.c,v 1.2 2019/12/22 12:41:33 skrll Exp $    */
 
 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
 /*
@@ -58,15 +58,15 @@
        return 1;
 }
 
-size_t fdt_header_size_(uint32_t version)
+size_t fdt_header_size_(uint32_t vers)
 {
-       if (version <= 1)
+       if (vers <= 1)
                return FDT_V1_SIZE;
-       else if (version <= 2)
+       else if (vers <= 2)
                return FDT_V2_SIZE;
-       else if (version <= 3)
+       else if (vers <= 3)
                return FDT_V3_SIZE;
-       else if (version <= 16)
+       else if (vers <= 16)
                return FDT_V16_SIZE;
        else
                return FDT_V17_SIZE;



Home | Main Index | Thread Index | Old Index