fix -Wshadow warnings

Rename variables to avoid conflicts in naming of local and global
variables.
This commit is contained in:
Miroslav Lichvar
2025-11-19 16:05:38 +01:00
parent 0fec9e5cfa
commit 42e7a7ae12
8 changed files with 81 additions and 81 deletions

View File

@@ -134,13 +134,13 @@ verify_message(NKSN_Instance inst)
static int
handle_request(void *arg)
{
NKSN_Instance server = arg;
NKSN_Instance inst = arg;
verify_message(server);
verify_message(inst);
request_received = 1;
send_message(server);
send_message(inst);
return 1;
}
@@ -148,11 +148,11 @@ handle_request(void *arg)
static int
handle_response(void *arg)
{
NKSN_Instance client = arg;
NKSN_Instance inst = arg;
response_received = 1;
verify_message(client);
verify_message(inst);
return 1;
}