summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorChuck Tuffli <ctuffli@gmail.com>2008-12-15 14:26:56 -0800
committerJean-Baptiste Queru <jbq@google.com>2009-08-26 09:26:46 -0700
commit1e070846f8908dff15086efa12fbba01ab7eae15 (patch)
treeada72e8668ab3f85e369f0a6724c8f393471f012 /init
parent7acf3386cca6dcfc22cfe45113cc5839502ad811 (diff)
downloadsystem_core-1e070846f8908dff15086efa12fbba01ab7eae15.zip
system_core-1e070846f8908dff15086efa12fbba01ab7eae15.tar.gz
system_core-1e070846f8908dff15086efa12fbba01ab7eae15.tar.bz2
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.
Diffstat (limited to 'init')
-rw-r--r--init/devices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/devices.c b/init/devices.c
index 60f9b9c..606a074 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)
{