From: Christophe ThiƩry Date: Tue, 17 Apr 2012 15:44:17 +0000 (+0200) Subject: Respect the coding style X-Git-Tag: v3_7~65^2~4^2~7 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3c673d7d868285e9c026b0428a7f821a1760189f?hp=65c4372e5e8a5c2b6ae7da0026c26025305a1a85 Respect the coding style --- diff --git a/examples/msg/chord/chord.c b/examples/msg/chord/chord.c index 4877119da4..d9f9995584 100644 --- a/examples/msg/chord/chord.c +++ b/examples/msg/chord/chord.c @@ -42,7 +42,7 @@ extern long int smx_total_comms; /** * Finger element. */ -typedef struct finger { +typedef struct s_finger { int id; char mailbox[MAILBOX_NAME_SIZE]; // string representation of the id } s_finger_t, *finger_t; @@ -50,7 +50,7 @@ typedef struct finger { /** * Node data. */ -typedef struct node { +typedef struct s_node { int id; // my id char mailbox[MAILBOX_NAME_SIZE]; // my mailbox name (string representation of the id) s_finger_t *fingers; // finger table, of size nb_bits (fingers[0] is my successor) @@ -77,7 +77,7 @@ typedef enum { /** * Data attached with the tasks sent and received */ -typedef struct task_data { +typedef struct s_task_data { e_task_type_t type; // type of task int request_id; // id paramater (used by some types of tasks) int request_finger; // finger parameter (used by some types of tasks)