Skip to content

Commit 0890344

Browse files
committed
Avoid shadowing "f_it"
Rename the first declaration to "lock_entry".
1 parent 97afec4 commit 0890344

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/goto-instrument/thread_instrumentation.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,14 @@ void mutex_init_instrumentation(goto_modelt &goto_model)
120120
{
121121
// get pthread_mutex_lock
122122

123-
symbol_tablet::symbolst::const_iterator f_it=
123+
symbol_tablet::symbolst::const_iterator lock_entry =
124124
goto_model.symbol_table.symbols.find("pthread_mutex_lock");
125125

126-
if(f_it==goto_model.symbol_table.symbols.end())
126+
if(lock_entry == goto_model.symbol_table.symbols.end())
127127
return;
128128

129129
// get type of lock argument
130-
code_typet code_type=to_code_type(to_code_type(f_it->second.type));
130+
code_typet code_type = to_code_type(to_code_type(lock_entry->second.type));
131131
if(code_type.parameters().size()!=1)
132132
return;
133133

0 commit comments

Comments
 (0)