From 98cea83de5b44557df754c2a6933387c69a52a0b Mon Sep 17 00:00:00 2001 From: bg- Date: Wed, 20 Dec 2006 14:41:28 +0000 Subject: [PATCH] * Include loader/symbols-def.h and use extern declarations. --- core/loader/symtab.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/loader/symtab.c b/core/loader/symtab.c index 0e0de74a2..8082cd1fc 100644 --- a/core/loader/symtab.c +++ b/core/loader/symtab.c @@ -28,12 +28,12 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: symtab.c,v 1.4 2006/12/19 09:31:37 adamdunkels Exp $ + * @(#)$Id: symtab.c,v 1.5 2006/12/20 14:41:28 bg- Exp $ */ #include "symtab.h" -#include "symbols.h" +#include "loader/symbols-def.h" #include @@ -48,7 +48,7 @@ symtab_lookup(const char *name) int r; start = 0; - end = sizeof(symbols) / sizeof(struct symbols); + end = symbols_nelts; do { /* Check middle, divide */