summaryrefslogtreecommitdiffstats
path: root/udevd.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-02-12 07:10:26 +0100
committerGreg KH <gregkh@suse.de>2005-04-27 06:32:26 +0200
commit51a8bb2f361d86013e7579570faba446eed9c66d (patch)
treee2ac4dc12e0608edec3731f1764873958b835add /udevd.c
parent[PATCH] make logging a config option (diff)
downloadsystemd-51a8bb2f361d86013e7579570faba446eed9c66d.tar.xz
systemd-51a8bb2f361d86013e7579570faba446eed9c66d.zip
[PATCH] fix log option code so that it actually works for all udev programs.
Also introduce boolean type for config file to use.
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/udevd.c b/udevd.c
index 8ba833186e..476cb64309 100644
--- a/udevd.c
+++ b/udevd.c
@@ -40,7 +40,6 @@
#include "udevd.h"
#include "logging.h"
-unsigned char logname[42];
static int expected_seqnum = 0;
volatile static int children_waiting;
volatile static int msg_q_timeout;
@@ -52,6 +51,13 @@ LIST_HEAD(running_list);
static void exec_queue_manager(void);
static void msg_queue_manager(void);
+unsigned char logname[42];
+
+int log_ok(void)
+{
+ return 1;
+}
+
static void msg_dump_queue(void)
{
struct hotplug_msg *msg;