Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix copyright headers
[simgrid.git] / src / gras / Msg / rpc.c
index 8f59435..1bdad03 100644 (file)
@@ -1,8 +1,7 @@
-/* $Id$ */
-
 /* rpc - RPC implementation on top of GRAS messages                         */
 
-/* Copyright (c) 2005 Martin Quinson. All rights reserved.                  */
+/* Copyright (c) 2006, 2007, 2009, 2010. The SimGrid Team.
+ * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -112,7 +111,7 @@ void gras_msg_ctx_mallocator_free_f(void *ctx)
 
 void gras_msg_ctx_mallocator_reset_f(void *ctx)
 {
-  memset(ctx, sizeof(s_gras_msg_cb_ctx_t), 0);
+  memset(ctx, 0, sizeof(s_gras_msg_cb_ctx_t));
 }
 
 /** @brief Launch a RPC call, but do not block for the answer */