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
[SMPI/MC] Use std::strlen() instead of manual counting.
[simgrid.git]
/
src
/
smpi
/
smpi_bench.cpp
diff --git
a/src/smpi/smpi_bench.cpp
b/src/smpi/smpi_bench.cpp
index
e6998c3
..
2aa1b81
100644
(file)
--- a/
src/smpi/smpi_bench.cpp
+++ b/
src/smpi/smpi_bench.cpp
@@
-646,7
+646,7
@@
void smpi_really_switch_data_segment(int dest) {
int smpi_is_privatisation_file(char* file)
{
- return strncmp("/dev/shm/my-buffer-", file,
19
) == 0;
+ return strncmp("/dev/shm/my-buffer-", file,
std::strlen("/dev/shm/my-buffer-")
) == 0;
}
void smpi_initialize_global_memory_segments(){