From 02d0b7ffcae32fd26c988b4f68addeb396fde8c9 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Sun, 21 Aug 2016 11:13:43 +0200
Subject: [PATCH] lib-sieve: encoded-character extension: Fixed function return
 types to be bool rather than int.

Found with clang -Wstrict-bool.
---
 src/lib-sieve/ext-encoded-character.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib-sieve/ext-encoded-character.c b/src/lib-sieve/ext-encoded-character.c
index cc5553be7..a1d252ea9 100644
--- a/src/lib-sieve/ext-encoded-character.c
+++ b/src/lib-sieve/ext-encoded-character.c
@@ -120,8 +120,9 @@ static bool _decode_hex
 	return ( values > 0 );
 }
 
-static int _decode_unicode
-(const char **in, const char *inend, string_t *result, unsigned int *error_hex)
+static bool _decode_unicode
+(const char **in, const char *inend, string_t *result,
+	unsigned int *error_hex)
 {
 	int values = 0;
 	bool valid = TRUE;
-- 
GitLab