From 8d1615459ac9f4064b0ad3f7f85952f782415e1f Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 24 Feb 2009 21:28:43 +0000 Subject: [PATCH] Added dummy function callback because sdcc does not like NULL function pointers --- apps/shell/shell-rime-ping.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/shell/shell-rime-ping.c b/apps/shell/shell-rime-ping.c index b4a441cb6..339a18a96 100644 --- a/apps/shell/shell-rime-ping.c +++ b/apps/shell/shell-rime-ping.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: shell-rime-ping.c,v 1.4 2008/08/15 18:58:42 adamdunkels Exp $ + * $Id: shell-rime-ping.c,v 1.5 2009/02/24 21:28:43 adamdunkels Exp $ */ /** @@ -118,6 +118,10 @@ timedout_mesh(struct mesh_conn *c) /* printf("packet timedout\n");*/ } static void +sent_mesh(struct mesh_conn *c) +{ +} +static void recv_mesh(struct mesh_conn *c, rimeaddr_t *from, u8_t hops) { struct ping_msg *ping; @@ -152,7 +156,7 @@ recv_mesh(struct mesh_conn *c, rimeaddr_t *from, u8_t hops) } } CC_CONST_FUNCTION static struct mesh_callbacks mesh_callbacks = { recv_mesh, - NULL, + sent_mesh, timedout_mesh }; /*---------------------------------------------------------------------------*/ void