From 45060ff9a849119da4e39431e30c2e8c763cca4e Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 30 Jan 2012 15:44:46 +0100 Subject: [PATCH] this type name is usable as is, so add _t postfix (s_name is only for stuff that mandates the use of 'struct' keyword) --- src/mc/mc_checkpoint.c | 8 ++++---- src/mc/mc_private.h | 4 ++-- src/mc/memory_map.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mc/mc_checkpoint.c b/src/mc/mc_checkpoint.c index 1ab97ea4c2..0c611ed31a 100644 --- a/src/mc/mc_checkpoint.c +++ b/src/mc/mc_checkpoint.c @@ -37,7 +37,7 @@ static void MC_region_restore(mc_mem_region_t reg) memory_map_t maps = get_memory_map(); MC_UNSET_RAW_MEM; unsigned int i=0; - s_map_region r; + s_map_region_t r; while(i < maps->mapsize){ r = maps->regions[i]; if (maps->regions[i].pathname != NULL){ @@ -90,7 +90,7 @@ static void MC_snapshot_add_region(mc_snapshot_t snapshot, int type, void *start void MC_take_snapshot(mc_snapshot_t snapshot) { unsigned int i = 0; - s_map_region reg; + s_map_region_t reg; memory_map_t maps = get_memory_map(); /* Save the std heap and the writable mapped pages of libsimgrid */ @@ -117,7 +117,7 @@ void MC_take_snapshot(mc_snapshot_t snapshot) void MC_take_snapshot_liveness(mc_snapshot_t snapshot) { unsigned int i = 0; - s_map_region reg; + s_map_region_t reg; memory_map_t maps = get_memory_map(); for(i=0; i< snapshot->num_reg; i++){ @@ -151,7 +151,7 @@ void MC_take_snapshot_liveness(mc_snapshot_t snapshot) void MC_take_snapshot_to_restore_liveness(mc_snapshot_t snapshot) { unsigned int i = 0; - s_map_region reg; + s_map_region_t reg; memory_map_t maps = get_memory_map(); for(i=0; i< snapshot->num_reg; i++){ diff --git a/src/mc/mc_private.h b/src/mc/mc_private.h index 89ff69002e..eb0f614bd1 100644 --- a/src/mc/mc_private.h +++ b/src/mc/mc_private.h @@ -174,11 +174,11 @@ typedef struct s_map_region { unsigned long inode; /* Inode in the device */ char *pathname; /* Path name of the mapped file */ -} s_map_region; +} s_map_region_t; typedef struct s_memory_map { - s_map_region *regions; /* Pointer to an array of regions */ + s_map_region_t *regions; /* Pointer to an array of regions */ int mapsize; /* Number of regions in the memory */ } s_memory_map_t, *memory_map_t; diff --git a/src/mc/memory_map.c b/src/mc/memory_map.c index 934dab89a7..b971a47f74 100644 --- a/src/mc/memory_map.c +++ b/src/mc/memory_map.c @@ -19,7 +19,7 @@ memory_map_t get_memory_map(void) memory_map_t ret = NULL; /* The memory map to return */ /* The following variables are used during the parsing of the file "maps" */ - s_map_region memreg; /* temporal map region used for creating the map */ + s_map_region_t memreg; /* temporal map region used for creating the map */ char *lfields[6], *tok, *endptr; int i; -- 2.20.1