Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
[simgrid.git] / src / gras / DataDesc / ddt_exchange.c
index 56f4e0a08dc2cdb1500532086613f54b2b65ea2b..7fec4c30adf8eb037fe6b3a2d66c1f3b0910925b 100644 (file)
@@ -330,17 +330,18 @@ gras_datadesc_send_rec(gras_socket_t         sock,
  *
  */
 xbt_error_t gras_datadesc_send(gras_socket_t        sock, 
-                               gras_datadesc_type_t type, 
-                               void *src) {
+                               gras_datadesc_type_t type, 
+                               void *src) {
 
   xbt_error_t errcode;
   gras_cbps_t  state;
   xbt_dict_t  refs; /* all references already sent */
  
+  xbt_assert0(type,"called with NULL type descriptor");
+
   refs = xbt_dict_new();
   state = gras_cbps_new();
   
-  xbt_assert0(type,"called with NULL type descriptor");
   errcode = gras_datadesc_send_rec(sock,state,refs,type,(char*)src, (type->flags & gras_datadesc_flag_cycle));
 
   xbt_dict_free(&refs);