From efbf184fe80c61f7666ded3342fcb97c1b770758 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 4 Oct 2012 09:34:48 +0200 Subject: PlaylistFile, client_file, tag_id3: don't use g_file_error_quark() g_file_error_quark() is meant to be used with the GFileError enum which does not correspond with errno, but must be converted with g_file_error_from_errno(). At the same time, this removes g_strerror() use for g_file_error_quark(). --- src/client_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client_file.c') diff --git a/src/client_file.c b/src/client_file.c index 2ee433308..5214ff019 100644 --- a/src/client_file.c +++ b/src/client_file.c @@ -20,6 +20,7 @@ #include "client_file.h" #include "client.h" #include "ack.h" +#include "io_error.h" #include #include @@ -53,8 +54,7 @@ client_allow_file(const struct client *client, const char *path_fs, struct stat st; if (stat(path_fs, &st) < 0) { - g_set_error(error_r, g_file_error_quark(), errno, - "%s", g_strerror(errno)); + set_error_errno(error_r); return false; } -- cgit v1.2.3