From: Arnaud Giersch Date: Fri, 15 Sep 2017 08:02:19 +0000 (+0200) Subject: Typedef is superfluous here. X-Git-Tag: v3_17~116 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e55efcb3ce72456cb67035488aa4e78136cf972f?hp=4cab4842222242d765367092141b3ece6aa903d2 Typedef is superfluous here. --- diff --git a/src/smpi/internals/smpi_shared.cpp b/src/smpi/internals/smpi_shared.cpp index 3e61ea75a9..9291073b24 100644 --- a/src/smpi/internals/smpi_shared.cpp +++ b/src/smpi/internals/smpi_shared.cpp @@ -73,21 +73,21 @@ public: } }; -typedef struct { +struct shared_data_t { int fd = -1; int count = 0; -} shared_data_t; +}; std::unordered_map> allocs; typedef decltype(allocs)::value_type shared_data_key_type; -typedef struct { +struct shared_metadata_t { size_t size; size_t allocated_size; void *allocated_ptr; std::vector> private_blocks; shared_data_key_type* data; -} shared_metadata_t; +}; std::map allocs_metadata; std::map calls;