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
please codacy: use long form of negation in C++
[simgrid.git]
/
teshsuite
/
s4u
/
storage_client_server
/
storage_client_server.cpp
diff --git
a/teshsuite/s4u/storage_client_server/storage_client_server.cpp
b/teshsuite/s4u/storage_client_server/storage_client_server.cpp
index
73aa75a
..
0dbda82
100644
(file)
--- a/
teshsuite/s4u/storage_client_server/storage_client_server.cpp
+++ b/
teshsuite/s4u/storage_client_server/storage_client_server.cpp
@@
-64,7
+64,7
@@
static void display_storage_content(simgrid::s4u::Storage* storage)
{
XBT_INFO("Print the content of the storage element: %s", storage->name());
std::map<std::string, sg_size_t*>* content = storage->content();
- if (
!
content->empty()) {
+ if (
not
content->empty()) {
for (auto entry : *content)
XBT_INFO("\t%s size: %llu bytes", entry.first.c_str(), *entry.second);
} else {
@@
-84,15
+84,15
@@
static void get_set_storage_data(const char* storage_name)
XBT_INFO("*** GET/SET DATA for storage element: %s ***", storage_name);
simgrid::s4u::Storage& storage = simgrid::s4u::Storage::byName(storage_name);
- char* data =
(char*)storage.userdata(
);
+ char* data =
static_cast<char*>(storage.userdata()
);
XBT_INFO("Get data: '%s'", data);
storage.setUserdata(xbt_strdup("Some data"));
- data =
(char*)storage.userdata(
);
+ data =
static_cast<char*>(storage.userdata()
);
XBT_INFO("\tSet and get data: '%s'", data);
xbt_free(data);
}
-static void dump_platform_storages(
void
)
+static void dump_platform_storages()
{
std::unordered_map<std::string, simgrid::s4u::Storage*>* storages = simgrid::s4u::Storage().allStorages();
@@
-149,7
+149,7
@@
static void server()
XBT_INFO("Server waiting for transfers ...");
while (1) {
char* msg = static_cast<char*>(simgrid::s4u::this_actor::recv(mailbox));
- if (
!
strcmp(msg, "finalize")) { // Shutdown ...
+ if (
not
strcmp(msg, "finalize")) { // Shutdown ...
xbt_free(msg);
break;
} else { // Receive file to save