From 1e070846f8908dff15086efa12fbba01ab7eae15 Mon Sep 17 00:00:00 2001 From: Chuck Tuffli Date: Mon, 15 Dec 2008 14:26:56 -0800 Subject: [PATCH] Fix incorrect check for LOG_UEVENTS LOG_UEVENTS is a boolean value as defined in system/core/init/init.h. Therefore, code should use an #if check and not an #ifdef check as the macro will always be defined. --- init/devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/devices.c b/init/devices.c index 60f9b9cb1..606a07445 100644 --- a/init/devices.c +++ b/init/devices.c @@ -288,7 +288,7 @@ static void make_device(const char *path, int block, int major, int minor) chown(path, uid, gid); } -#ifdef LOG_UEVENTS +#if LOG_UEVENTS static inline suseconds_t get_usecs(void) {