summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArvydas Sidorenko <asido4@gmail.com>2012-07-31 11:38:08 +0200
committerKay Sievers <kay@vrfy.org>2012-07-31 11:49:10 +0200
commita267bebf464cbb339d3411370f2e984dfc063567 (patch)
treebb0552cca69f4bc85c395102080820c5a744b82a
parent5c315b4f2a43b1a8e1951d83dd326d2a8c615922 (diff)
libudev-queue.c: simplified open_queue_file
There is no apparent justification for using util_strscpyl on the filename since it's a plain hardcoded path. Older versions used: util_strscpyl(filename, sizeof(filename), SOME_DIR, "/queue.bin", NULL); and when changed nobody bothered to simplify it.
-rw-r--r--src/libudev/libudev-queue.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libudev/libudev-queue.c b/src/libudev/libudev-queue.c
index 1b3da39f83..93841fe6d8 100644
--- a/src/libudev/libudev-queue.c
+++ b/src/libudev/libudev-queue.c
@@ -210,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)
{
- char filename[UTIL_PATH_SIZE];
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;