diff options
author | Kay Sievers <kay@vrfy.org> | 2012-05-15 22:57:58 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-05-15 23:06:26 +0200 |
commit | 20bbd54f603994a3cc211d2795de16550882ed8d (patch) | |
tree | de65aaa655d6c3d50d52c7c5db8607fc83a550a8 /src/libudev/libudev-device.c | |
parent | 6e92b23f0d6dd398848376bbaf47e54a90ed3389 (diff) |
udev: libudev - bump soname, remove deprecated functions, introduce symbol versions
Diffstat (limited to 'src/libudev/libudev-device.c')
-rw-r--r-- | src/libudev/libudev-device.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c index 9ef4610a6a..f0aab5d464 100644 --- a/src/libudev/libudev-device.c +++ b/src/libudev/libudev-device.c @@ -1023,13 +1023,13 @@ _public_ struct udev_device *udev_device_ref(struct udev_device *udev_device) * the resources of the device will be released. * **/ -_public_ void udev_device_unref(struct udev_device *udev_device) +_public_ struct udev_device *udev_device_unref(struct udev_device *udev_device) { if (udev_device == NULL) - return; + return NULL; udev_device->refcount--; if (udev_device->refcount > 0) - return; + return udev_device; if (udev_device->parent_device != NULL) udev_device_unref(udev_device->parent_device); free(udev_device->syspath); @@ -1049,6 +1049,7 @@ _public_ void udev_device_unref(struct udev_device *udev_device) free(udev_device->envp); free(udev_device->monitor_buf); free(udev_device); + return NULL; } /** |