Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove the useless last argument of msgtype_declare
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 22 Jul 2004 03:02:28 +0000 (03:02 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 22 Jul 2004 03:02:28 +0000 (03:02 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@301 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/ping/ping.c
include/messages.h

index 05f99cb..2ed1eac 100644 (file)
@@ -30,10 +30,9 @@ gras_error_t register_messages(void);
 /* Code */
 gras_error_t register_messages(void) {
   gras_error_t errcode;
-  gras_msgtype_t *msg_t; /* FIXME: not needed */
 
-  TRY(gras_msgtype_declare("ping", gras_datadesc_by_name("int"), &msg_t));
-  TRY(gras_msgtype_declare("pong", gras_datadesc_by_name("int"), &msg_t));
+  TRY(gras_msgtype_declare("ping", gras_datadesc_by_name("int")));
+  TRY(gras_msgtype_declare("pong", gras_datadesc_by_name("int")));
 
   return no_error;
 }
index 2a326e2..ca644b1 100644 (file)
@@ -39,12 +39,10 @@ BEGIN_DECL
 typedef struct s_gras_msgtype gras_msgtype_t;
 
 gras_error_t gras_msgtype_declare  (const char            *name,
-                                   gras_datadesc_type_t  *payload,
-                                   gras_msgtype_t       **dst);
+                                   gras_datadesc_type_t  *payload);
 gras_error_t gras_msgtype_declare_v(const char            *name,
                                    short int              version,
-                                   gras_datadesc_type_t  *payload,
-                                   gras_msgtype_t       **dst);
+                                   gras_datadesc_type_t  *payload);
 
 gras_error_t gras_msgtype_by_name (const char     *name,
                                   gras_msgtype_t **dst);