From e1cd724f37331aa9d5a760f705e79955a9780e57 Mon Sep 17 00:00:00 2001 From: bg- Date: Thu, 31 May 2007 14:24:20 +0000 Subject: [PATCH] * #ifndef NOINIT around NOINIT define. --- core/net/uaodv.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/core/net/uaodv.c b/core/net/uaodv.c index d33e4717e..a18d3e215 100644 --- a/core/net/uaodv.c +++ b/core/net/uaodv.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: uaodv.c,v 1.25 2007/05/31 10:10:26 bg- Exp $ + * $Id: uaodv.c,v 1.26 2007/05/31 14:24:20 bg- Exp $ */ /** @@ -76,14 +76,17 @@ last_known_seqno(uip_ipaddr_t *host) return 0; } -/* - * When possible, keep state across reboots. - */ +#ifndef NOINIT #ifdef __GNUC__ #define NOINIT __attribute__((section(".noinit"))) #else /* __GNUC__ */ #define NOINIT #endif /* __GNUC__ */ +#endif + +/* + * When possible, keep state across reboots. + */ NOINIT static u32_t rreq_id, my_hseqno; /* In host byte order! */ #define NFWCACHE 16