summaryrefslogtreecommitdiff
path: root/decoder.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-05-16 22:17:07 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-05-16 23:11:08 +0200
commit1d757906a2f8c881fcbbd1915420aa80a9d5da36 (patch)
treec07d44f8722daa683fe6271bdfbb195ea548bfed /decoder.c
parent3389df7d5d85edc9453c3bd7f3556154152af501 (diff)
downloadlibsigrokdecode-1d757906a2f8c881fcbbd1915420aa80a9d5da36.tar.gz
libsigrokdecode-1d757906a2f8c881fcbbd1915420aa80a9d5da36.zip
srd_decoder_load_all_zip_path(): Fix a compiler warning (-Wshadow).
Diffstat (limited to 'decoder.c')
-rw-r--r--decoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder.c b/decoder.c
index bebe96c..87df2ad 100644
--- a/decoder.c
+++ b/decoder.c
@@ -937,7 +937,7 @@ SRD_API int srd_decoder_unload(struct srd_decoder *dec)
return SRD_OK;
}
-static void srd_decoder_load_all_zip_path(char *path)
+static void srd_decoder_load_all_zip_path(char *zip_path)
{
PyObject *zipimport_mod, *zipimporter_class, *zipimporter;
PyObject *prefix_obj, *files, *key, *value, *set, *modname;
@@ -958,7 +958,7 @@ static void srd_decoder_load_all_zip_path(char *path)
if (zipimporter_class == NULL)
goto err_out;
- zipimporter = PyObject_CallFunction(zipimporter_class, "s", path);
+ zipimporter = PyObject_CallFunction(zipimporter_class, "s", zip_path);
if (zipimporter == NULL)
goto err_out;