From 325c992bea3bfaf204c493357523817816ba44db Mon Sep 17 00:00:00 2001
From: Chris Robinson <chris.kcat@gmail.com>
Date: Wed, 30 Mar 2022 01:25:36 -0700
Subject: Avoid a shadow declaration warning

---
 alc/backends/sndio.cpp | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

(limited to 'alc/backends')

diff --git a/alc/backends/sndio.cpp b/alc/backends/sndio.cpp
index 469e5c85..48387c65 100644
--- a/alc/backends/sndio.cpp
+++ b/alc/backends/sndio.cpp
@@ -438,14 +438,14 @@ void SndioCapture::open(const char *name)
         throw al::backend_exception{al::backend_error::DeviceError,
             "Padded samples not supported (got %u of %u bits)", par.bits, par.bps*8};
 
-    auto match_fmt = [](DevFmtType fmttype, const sio_par &par) -> bool
+    auto match_fmt = [](DevFmtType fmttype, const sio_par &p) -> bool
     {
-        return (fmttype == DevFmtByte && par.bps == 1 && par.sig != 0)
-            || (fmttype == DevFmtUByte && par.bps == 1 && par.sig == 0)
-            || (fmttype == DevFmtShort && par.bps == 2 && par.sig != 0)
-            || (fmttype == DevFmtUShort && par.bps == 2 && par.sig == 0)
-            || (fmttype == DevFmtInt && par.bps == 4 && par.sig != 0)
-            || (fmttype == DevFmtUInt && par.bps == 4 && par.sig == 0);
+        return (fmttype == DevFmtByte && p.bps == 1 && p.sig != 0)
+            || (fmttype == DevFmtUByte && p.bps == 1 && p.sig == 0)
+            || (fmttype == DevFmtShort && p.bps == 2 && p.sig != 0)
+            || (fmttype == DevFmtUShort && p.bps == 2 && p.sig == 0)
+            || (fmttype == DevFmtInt && p.bps == 4 && p.sig != 0)
+            || (fmttype == DevFmtUInt && p.bps == 4 && p.sig == 0);
     };
     if(!match_fmt(mDevice->FmtType, par) || mDevice->channelsFromFmt() != par.rchan
         || mDevice->Frequency != par.rate)
-- 
cgit v1.2.3