From 2e495db056b55008d8efe6a4e355714b7c8cd929 Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Mon, 15 Oct 2018 23:05:15 +0200
Subject: [PATCH] Fixed wrong return type for util_file_set_content().

---
 src/util.c | 2 +-
 src/util.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util.c b/src/util.c
index dbce2a0..d18bc72 100644
--- a/src/util.c
+++ b/src/util.c
@@ -356,7 +356,7 @@ char *util_get_file_contents(const char *filename, gsize *length)
  * Atomicly writes contents to given file.
  * Returns TRUE on success, FALSE otherwise.
  */
-char *util_file_set_content(const char *file, const char *contents)
+gboolean util_file_set_content(const char *file, const char *contents)
 {
     gboolean retval = FALSE;
     char *tmp_name;
diff --git a/src/util.h b/src/util.h
index bccb2a3..62b7574 100644
--- a/src/util.h
+++ b/src/util.h
@@ -42,7 +42,7 @@ void util_file_prepend_line(const char *file, const char *line,
 char *util_file_pop_line(const char *file, int *item_count);
 char *util_get_config_dir(void);
 char *util_get_file_contents(const char *filename, gsize *length);
-char *util_file_set_content(const char *file, const char *contents);
+gboolean util_file_set_content(const char *file, const char *contents);
 char *util_get_filepath(const char *dir, const char *filename, gboolean create, int mode);
 char **util_get_lines(const char *filename);
 GList *util_file_to_unique_list(const char *filename, Util_Content_Func func,
-- 
2.20.1