From e2f988e458cb9ba80b29ad01352d264896d4c7d8 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Sun, 8 Dec 2013 12:40:27 +0100 Subject: ddb/db_mp.c: definition of db_console() only if CONSOLE_ON_MASTER Function db_console() is called only if CONSOLE_ON_MASTER. If it stays this way, db_console() will not compile. I don't know if it should be removed. Maybe someone will rewrite it. * ddb/db_mp.c (db_console): Definition only if CONSOLE_ON_MASTER. * ddb/db_mp.h [CONSOLE_ON_MASTER] (db_console): Add prototype. --- ddb/db_mp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ddb/db_mp.c') diff --git a/ddb/db_mp.c b/ddb/db_mp.c index b99718e4..3dfef09c 100644 --- a/ddb/db_mp.c +++ b/ddb/db_mp.c @@ -303,7 +303,7 @@ unlock_db() simple_unlock(&db_lock); } -#ifdef sketch +#if CONSOLE_ON_MASTER void db_console() { @@ -326,7 +326,7 @@ db_console() db_cpu = my_cpu; } } -#endif /* sketch */ +#endif /* CONSOLE_ON_MASTER */ #endif /* NCPUS > 1 */ -- cgit v1.2.3