summaryrefslogtreecommitdiff
path: root/extras/floppy/create_floppy_devices.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-06-09 22:47:48 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-06-09 22:47:48 +0200
commit9060b066d9e7aaca9795010ac5fff61018947f87 (patch)
treee79743bf9b075b10e2de962579e63a30ce36202e /extras/floppy/create_floppy_devices.c
parent119f66fc36b4f5164fb4a9ece247938e97609a05 (diff)
move syslog wrapper to libudev
Diffstat (limited to 'extras/floppy/create_floppy_devices.c')
-rw-r--r--extras/floppy/create_floppy_devices.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/extras/floppy/create_floppy_devices.c b/extras/floppy/create_floppy_devices.c
index 0698fcd3e8..b0d7b0bc85 100644
--- a/extras/floppy/create_floppy_devices.c
+++ b/extras/floppy/create_floppy_devices.c
@@ -24,6 +24,8 @@
#include <pwd.h>
#include <grp.h>
+#include "libudev.h"
+#include "libudev-private.h"
#include "../../udev/udev.h"
static char *table[] = {
@@ -66,7 +68,7 @@ int main(int argc, char **argv)
if (udev == NULL)
goto exit;
- logging_init("create_floppy_devices");
+ udev_log_init("create_floppy_devices");
udev_set_log_fn(udev, log_fn);
udev_selinux_init(udev);
@@ -164,6 +166,7 @@ int main(int argc, char **argv)
udev_selinux_exit(udev);
udev_unref(udev);
+ udev_log_close();
exit:
return 0;
}