summaryrefslogtreecommitdiff
path: root/libudev/libudev-queue-private.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-04-24 00:36:22 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-04-24 00:36:22 +0200
commitf6577968a2f86aade8fff503a53fa52a7245251a (patch)
treee6df736d91e0f901fcf81a65a8f44296a4cafcce /libudev/libudev-queue-private.c
parent8958da13c72024c4eaa2996b86fce2959e452db4 (diff)
libudev: queue - _unref() should return the object
Diffstat (limited to 'libudev/libudev-queue-private.c')
-rw-r--r--libudev/libudev-queue-private.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libudev/libudev-queue-private.c b/libudev/libudev-queue-private.c
index 2f1afecb29..a799be062a 100644
--- a/libudev/libudev-queue-private.c
+++ b/libudev/libudev-queue-private.c
@@ -90,13 +90,14 @@ struct udev_queue_export *udev_queue_export_new(struct udev *udev)
return udev_queue_export;
}
-void udev_queue_export_unref(struct udev_queue_export *udev_queue_export)
+struct udev_queue_export *udev_queue_export_unref(struct udev_queue_export *udev_queue_export)
{
if (udev_queue_export == NULL)
- return;
+ return NULL;
if (udev_queue_export->queue_file != NULL)
fclose(udev_queue_export->queue_file);
free(udev_queue_export);
+ return NULL;
}
void udev_queue_export_cleanup(struct udev_queue_export *udev_queue_export)