chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
udev: get rid of SYSCONFDIR
[elogind.git]
/
src
/
libudev
/
libudev-queue.c
diff --git
a/src/libudev/libudev-queue.c
b/src/libudev/libudev-queue.c
index 15a7f558b1dff40f74eaf66cfd90a52cae6fc0f8..93841fe6d899fc8869830f383e5868317413dd1b 100644
(file)
--- a/
src/libudev/libudev-queue.c
+++ b/
src/libudev/libudev-queue.c
@@
-92,6
+92,8
@@
_public_ struct udev_queue *udev_queue_ref(struct udev_queue *udev_queue)
*
* Drop a reference of a udev queue context. If the refcount reaches zero,
* the resources of the queue context will be released.
*
* Drop a reference of a udev queue context. If the refcount reaches zero,
* the resources of the queue context will be released.
+ *
+ * Returns: the passed queue context if it has still an active reference, or #NULL otherwise.
**/
_public_ struct udev_queue *udev_queue_unref(struct udev_queue *udev_queue)
{
**/
_public_ struct udev_queue *udev_queue_unref(struct udev_queue *udev_queue)
{
@@
-208,11
+210,9
@@
ssize_t udev_queue_read_devpath(FILE *queue_file, char *devpath, size_t size)
static FILE *open_queue_file(struct udev_queue *udev_queue, unsigned long long int *seqnum_start)
{
static FILE *open_queue_file(struct udev_queue *udev_queue, unsigned long long int *seqnum_start)
{
- char filename[UTIL_PATH_SIZE];
FILE *queue_file;
FILE *queue_file;
- util_strscpyl(filename, sizeof(filename), "/run/udev/queue.bin", NULL);
- queue_file = fopen(filename, "re");
+ queue_file = fopen("/run/udev/queue.bin", "re");
if (queue_file == NULL)
return NULL;
if (queue_file == NULL)
return NULL;