diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-09 22:47:48 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-09 22:47:48 +0200 |
commit | 9060b066d9e7aaca9795010ac5fff61018947f87 (patch) | |
tree | e79743bf9b075b10e2de962579e63a30ce36202e /extras/cdrom_id | |
parent | 119f66fc36b4f5164fb4a9ece247938e97609a05 (diff) |
move syslog wrapper to libudev
Diffstat (limited to 'extras/cdrom_id')
-rw-r--r-- | extras/cdrom_id/Makefile.am | 1 | ||||
-rw-r--r-- | extras/cdrom_id/cdrom_id.c | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/extras/cdrom_id/Makefile.am b/extras/cdrom_id/Makefile.am index 8e1968e6e1..bfdfdd3735 100644 --- a/extras/cdrom_id/Makefile.am +++ b/extras/cdrom_id/Makefile.am @@ -11,6 +11,7 @@ dist_udevrules_DATA = \ cdrom_id_SOURCES = \ cdrom_id.c \ ../../libudev/libudev.h \ + ../../libudev/libudev-private.h \ ../../libudev/libudev.c \ ../../libudev/libudev-list.c \ ../../libudev/libudev-util.c diff --git a/extras/cdrom_id/cdrom_id.c b/extras/cdrom_id/cdrom_id.c index 2306d9ad71..d4156ce7ac 100644 --- a/extras/cdrom_id/cdrom_id.c +++ b/extras/cdrom_id/cdrom_id.c @@ -37,7 +37,8 @@ #include <sys/ioctl.h> #include <linux/cdrom.h> -#include "../../udev/udev.h" +#include "libudev.h" +#include "libudev-private.h" static int debug; @@ -528,7 +529,7 @@ int main(int argc, char *argv[]) if (udev == NULL) goto exit; - logging_init("cdrom_id"); + udev_log_init("cdrom_id"); udev_set_log_fn(udev, log_fn); while (1) { @@ -706,7 +707,7 @@ exit: if (fd >= 0) close(fd); udev_unref(udev); - logging_close(); + udev_log_close(); return rc; } |