From 677dd296a6a56ddb0c2b79a0ba4bf932b18011a5 Mon Sep 17 00:00:00 2001 From: nifi Date: Fri, 16 Jan 2009 17:40:16 +0000 Subject: [PATCH] Updated to match new multihop API. Thanks to Carlo Alberto Boano for fixing. --- examples/rime/example-multihop.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/rime/example-multihop.c b/examples/rime/example-multihop.c index d7806b792..a082a9767 100644 --- a/examples/rime/example-multihop.c +++ b/examples/rime/example-multihop.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: example-multihop.c,v 1.1 2008/07/03 22:36:02 adamdunkels Exp $ + * $Id: example-multihop.c,v 1.2 2009/01/16 17:40:16 nifi Exp $ */ /** @@ -51,7 +51,8 @@ PROCESS(example_multihop_process, "multihop example"); AUTOSTART_PROCESSES(&example_multihop_process); /*---------------------------------------------------------------------------*/ static void -recv(struct multihop_conn *c, rimeaddr_t *sender) +recv(struct multihop_conn *c, rimeaddr_t *sender, rimeaddr_t *prevhop, + uint8_t hops) { printf("multihop message received '%s'\n", (char *)rimebuf_dataptr()); }