boards native: Move int declaration into loop
To reduce its scope and please static analyzers Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
e32b98c3a1
commit
1286f15543
1 changed files with 1 additions and 3 deletions
|
@ -14,9 +14,7 @@
|
|||
|
||||
static void remove_one_char(char *str)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; str[i] != 0; i++) {
|
||||
for (int i = 0; str[i] != 0; i++) {
|
||||
str[i] = str[i+1];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue