From c3e51a48f159e71048cea229bf277a9955c74ef3 Mon Sep 17 00:00:00 2001 From: hunt Date: Sun, 18 Mar 2007 20:59:59 +0000 Subject: 2007-03-18 Martin Hunt * stack.c, string.c, sym.c, transport/symbols.c: Fix some signed vs unsigned comparison warnings. --- runtime/sym.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/sym.c') diff --git a/runtime/sym.c b/runtime/sym.c index 1e9de765..1a18f95b 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -25,7 +25,7 @@ static unsigned long _stp_module_relocate (const char *module, const char *secti static struct _stp_symbol *last_sec; unsigned long flags; int i,j; - + printk("_stp_relocate_module: %s, %s, %lx\n", module, section, offset); STP_LOCK_MODULES; if (! module || _stp_num_modules == 0) { STP_UNLOCK_MODULES; @@ -44,7 +44,7 @@ static unsigned long _stp_module_relocate (const char *module, const char *secti last = _stp_modules[i]; if (strcmp(module, last->name)) continue; - for (j = 0; j < last->num_sections; j++) { + for (j = 0; j < (int)last->num_sections; j++) { last_sec = &last->sections[j]; if (!strcmp (section, last_sec->symbol)) { STP_UNLOCK_MODULES; -- cgit