diff options
author | Jim Meyering <meyering@fb.com> | 2014-05-25 09:44:39 -0700 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2014-05-26 08:01:09 -0700 |
commit | b50186ef7d6a41d950879ef9b0183f69c8f60ae3 (patch) | |
tree | 5a5b8f5f28d5bd6bf7dd186bec7bbafc71e8f8db /src/uname.c | |
parent | 442fafa54c63cbbf25ffb6a54297c0289e97b34c (diff) | |
download | coreutils-b50186ef7d6a41d950879ef9b0183f69c8f60ae3.tar.xz |
build: uname: avoid shadowing warning
* src/uname.c (main) [__APPLE__]: Rename inner "s" to "cs",
to avoid gcc shadowing warning.
Diffstat (limited to 'src/uname.c')
-rw-r--r-- | src/uname.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uname.c b/src/uname.c index e6980ba05..e3bed488c 100644 --- a/src/uname.c +++ b/src/uname.c @@ -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) |