]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: uname: avoid shadowing warning
authorJim Meyering <meyering@fb.com>
Sun, 25 May 2014 16:44:39 +0000 (09:44 -0700)
committerJim Meyering <meyering@fb.com>
Mon, 26 May 2014 15:01:09 +0000 (08:01 -0700)
* src/uname.c (main) [__APPLE__]: Rename inner "s" to "cs",
to avoid gcc shadowing warning.

src/uname.c

index e6980ba05eac7164055ef6785b569e262a02d82c..e3bed488cc8256e6ab77e3a45ed0bdfab6703903 100644 (file)
@@ -321,9 +321,9 @@ main (int argc, char **argv)
           if (element == unknown)
             {
               cpu_type_t cputype;
-              size_t s = sizeof cputype;
+              size_t cs = sizeof cputype;
               NXArchInfo const *ai;
-              if (sysctlbyname ("hw.cputype", &cputype, &s, NULL, 0) == 0
+              if (sysctlbyname ("hw.cputype", &cputype, &cs, NULL, 0) == 0
                   && (ai = NXGetArchInfoFromCpuType (cputype,
                                                      CPU_SUBTYPE_MULTIPLE))
                   != NULL)