From fa1a96636e19354b67a83dd53bd0f5ee31c16e63 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Sun, 28 Feb 2010 08:30:39 +0000 Subject: [PATCH] Bugfix: the compile-time check for UIP_LLADDR_LEN previously generated a run-time error, when it should have generated a compile-time error --- core/net/uip-netif.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/net/uip-netif.c b/core/net/uip-netif.c index 9bf501cfc..0684ba49a 100644 --- a/core/net/uip-netif.c +++ b/core/net/uip-netif.c @@ -248,9 +248,7 @@ uip_netif_addr_autoconf_set(uip_ipaddr_t *ipaddr, uip_lladdr_t *lladdr) memcpy(ipaddr->u8 + 13, (u8_t*)lladdr + 3, 3); ipaddr->u8[8] ^= 0x02; #else - UIP_LOG("CAN NOT BUILD INTERFACE IDENTIFIER"); - UIP_LOG("THE STACK IS GOING TO SHUT DOWN"); - UIP_LOG("THE HOST WILL BE UNREACHABLE"); +#error uip-netif.c cannot build interface address when UIP_LLADDR_LEN is not 6 or 8 #endif } /*---------------------------------------------------------------------------*/