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
-1
View File
@@ -42,7 +42,6 @@ int udev_device_new_from_stat_rdev(struct udev *udev, const struct stat *st, str
struct udev_device *nd;
char type;
assert(udev);
assert(st);
assert(ret);