libudev: accept NULL as the argument 'struct udev*' for udev_monitor_new() or friends

As udev_monitor struct or friends are now almost independent of udev
struct. So, generating these objects without udev struct is reasonable.
This commit is contained in:
Yu Watanabe
2018-08-23 04:57:39 +09:00
parent 6ae4283cb1
commit 3938f568a2
7 changed files with 0 additions and 18 deletions
-5
View File
@@ -45,11 +45,6 @@ _public_ struct udev_queue *udev_queue_new(struct udev *udev)
{
struct udev_queue *udev_queue;
if (udev == NULL) {
errno = EINVAL;
return NULL;
}
udev_queue = new0(struct udev_queue, 1);
if (udev_queue == NULL) {
errno = ENOMEM;