summaryrefslogtreecommitdiff
path: root/udev/lib/libudev.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-10 14:29:07 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-09-10 14:29:07 +0200
commitb21b95d7222f32940c8e9462c361e45041c9f7d6 (patch)
treed75a22dd0617cabc0c655e70d50ce5a03b80a683 /udev/lib/libudev.c
parente88a82b5976b8066583936a2521ba3c70dd460dd (diff)
libudev: get rid of udev_sysfs.c
Diffstat (limited to 'udev/lib/libudev.c')
-rw-r--r--udev/lib/libudev.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/udev/lib/libudev.c b/udev/lib/libudev.c
index 50fe0d1c89..3bcafcd9a6 100644
--- a/udev/lib/libudev.c
+++ b/udev/lib/libudev.c
@@ -295,10 +295,7 @@ struct udev *udev_new(void)
if (udev->dev_path == NULL || udev->sys_path == NULL)
goto err;
-
selinux_init(udev);
- sysfs_init();
-
info(udev, "context %p created\n", udev);
info(udev, "log_priority=%d\n", udev->log_priority);
info(udev, "config_file='%s'\n", config_file);
@@ -306,7 +303,6 @@ struct udev *udev_new(void)
info(udev, "sys_path='%s'\n", udev->sys_path);
if (udev->rules_path != NULL)
info(udev, "rules_path='%s'\n", udev->rules_path);
-
free(config_file);
return udev;
err:
@@ -347,7 +343,6 @@ void udev_unref(struct udev *udev)
udev->refcount--;
if (udev->refcount > 0)
return;
- sysfs_cleanup();
selinux_exit(udev);
free(udev->dev_path);
free(udev->sys_path);