From 2e565ac1a15c21e3655a6e717e33cca24922c74d Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 8 Nov 2011 21:57:55 +0100 Subject: [PATCH] rename some types for consistency --- include/simgrid/platf.h | 6 +++--- src/surf/surfxml_parse.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/simgrid/platf.h b/include/simgrid/platf.h index ec702b43e1..8b09800ef4 100644 --- a/include/simgrid/platf.h +++ b/include/simgrid/platf.h @@ -68,8 +68,8 @@ typedef struct { xbt_dict_t properties; } s_sg_platf_link_cbarg_t, *sg_platf_link_cbarg_t; -typedef struct s_surf_parsing_peer_arg *sg_platf_peer_cbarg_t; -typedef struct s_surf_parsing_peer_arg { +typedef struct s_sg_platf_peer_cbarg *sg_platf_peer_cbarg_t; +typedef struct s_sg_platf_peer_cbarg { const char* id; double power; double bw_in; @@ -78,7 +78,7 @@ typedef struct s_surf_parsing_peer_arg { const char* coord; tmgr_trace_t availability_trace; tmgr_trace_t state_trace; -} s_surf_parsing_peer_arg_t; +} s_sg_platf_peer_cbarg_t; XBT_PUBLIC(void) sg_platf_open(void); // Start a new platform diff --git a/src/surf/surfxml_parse.c b/src/surf/surfxml_parse.c index 7a7383ca8a..b03e0b0cae 100644 --- a/src/surf/surfxml_parse.c +++ b/src/surf/surfxml_parse.c @@ -331,7 +331,7 @@ void ETag_surfxml_cluster(void){ } void STag_surfxml_peer(void){ - s_surf_parsing_peer_arg_t peer; + s_sg_platf_peer_cbarg_t peer; memset(&peer,0,sizeof(peer)); peer.id = A_surfxml_peer_id; peer.power = surf_parse_get_double(A_surfxml_peer_power); -- 2.20.1