From c23c9831c41f6f2e75c45a84c298d531d4010c0c Mon Sep 17 00:00:00 2001 From: mquinson Date: Thu, 30 Mar 2006 23:09:20 +0000 Subject: [PATCH] Keep in sync with last changes in the GRAS callback API. See, that's not such a big deal git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2025 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/gras/ping/ping.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/gras/ping/ping.c b/examples/gras/ping/ping.c index a6c84d21a5..e8780f8807 100644 --- a/examples/gras/ping/ping.c +++ b/examples/gras/ping/ping.c @@ -32,12 +32,12 @@ typedef struct { } server_data_t; -static int server_cb_ping_handler(gras_socket_t expeditor, - void *payload_data) { +static int server_cb_ping_handler(gras_msg_cb_ctx_t ctx, void *payload) { xbt_ex_t e; - /* 1. Get the payload into the msg variable */ - int msg=*(int*)payload_data; + /* 1. Get the payload into the msg variable, and retrieve my caller */ + int msg=*(int*)payload; + gras_socket_t expeditor = gras_msg_cb_ctx_from(ctx); /* 2. Retrieve the server's state (globals) */ -- 2.20.1