A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[sonar] Constify pointer and reference local variables in teshsuite/.
[simgrid.git]
/
teshsuite
/
msg
/
app-chainsend
/
iterator.c
diff --git
a/teshsuite/msg/app-chainsend/iterator.c
b/teshsuite/msg/app-chainsend/iterator.c
index bfffe74744cac9ec3b918a3d60498fecdfac9a7f..a96a090c1e679c5d218b52ec9a35397691f07335 100644
(file)
--- a/
teshsuite/msg/app-chainsend/iterator.c
+++ b/
teshsuite/msg/app-chainsend/iterator.c
@@
-29,7
+29,7
@@
void* xbt_dynar_iterator_next(xbt_dynar_iterator_t it)
if (it->current >= it->length) {
return NULL;
} else {
- int* next = xbt_dynar_get_ptr(it->indices_list, it->current);
+
const
int* next = xbt_dynar_get_ptr(it->indices_list, it->current);
it->current++;
return xbt_dynar_get_ptr(it->list, *next);
}