From 12db01eef510f93c84230ba3301c53508fdade57 Mon Sep 17 00:00:00 2001 From: mquinson Date: Thu, 22 Jul 2004 21:56:58 +0000 Subject: [PATCH] Adapt gras_userdata_new to the change in gras_userdata_set git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@320 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/gras/process.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gras/process.h b/include/gras/process.h index 76c2659805..5b528a4abf 100644 --- a/include/gras/process.h +++ b/include/gras/process.h @@ -69,7 +69,7 @@ void *gras_userdata_get(void); * * Set the data associated with the current process. */ -void *gras_userdata_set(void *ud); +void gras_userdata_set(void *ud); /** * gras_userdata_new: @@ -77,7 +77,7 @@ void *gras_userdata_set(void *ud); * Malloc and set the data associated with the current process. */ -#define gras_userdata_new(type) gras_userdata_set(malloc(sizeof(type))) +#define gras_userdata_new(type) (gras_userdata_set(malloc(sizeof(type))),gras_userdata_get()) END_DECL -- 2.20.1