mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
build: uname: avoid shadowing warning
* src/uname.c (main) [__APPLE__]: Rename inner "s" to "cs", to avoid gcc shadowing warning.
This commit is contained in:
1 parent
442fafa54c
commit
b50186ef7d
1 file changed
+2
-2
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user