From b8a3a4109eccfcdc959a78dc6452043edffd96b5 Mon Sep 17 00:00:00 2001 From: nvt-se Date: Fri, 30 Apr 2010 22:18:12 +0000 Subject: [PATCH] Adjusted the code so as to remove compilation warnings. --- core/net/mac/lpp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/net/mac/lpp.c b/core/net/mac/lpp.c index bec67adf4..e85a80fc8 100644 --- a/core/net/mac/lpp.c +++ b/core/net/mac/lpp.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: lpp.c,v 1.33 2010/04/30 07:31:44 adamdunkels Exp $ + * $Id: lpp.c,v 1.34 2010/04/30 22:18:12 nvt-se Exp $ */ /** @@ -422,7 +422,7 @@ send_probe(void) if(hdrlen == 0) { /* Failed to send */ PRINTF("contikimac: send failed, too large header\n"); - return MAC_TX_ERR_FATAL; + return; } } @@ -628,7 +628,8 @@ send_packet(mac_callback_t sent, void *ptr) if(hdrlen == 0) { /* Failed to send */ PRINTF("contikimac: send failed, too large header\n"); - return MAC_TX_ERR_FATAL; + mac_call_sent_callback(sent, ptr, MAC_TX_ERR_FATAL, 0); + return; } } @@ -723,7 +724,6 @@ input_packet(void) if(hdr.type == TYPE_PROBE) { struct announcement_msg adata; - int i; /* Register the encounter with the sending node. We now know the neighbor's phase. */