From c9f895f7a221cb320e1ee971e2902eca710bf61e Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Tue, 11 Apr 2017 12:55:06 +0100 Subject: [PATCH] address_uses_unicode --- smtp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/smtp.c b/smtp.c index 925bc7218..2aea4ac64 100644 --- a/smtp.c +++ b/smtp.c @@ -231,21 +231,21 @@ smtp_data (CONNECTION * conn, const char *msgfile) } -/* Returns 1 if a contains at least one 8-bit character, 0 if none do. +/* Returns true if a contains at least one 8-bit character, false if none do. */ -static int address_uses_unicode(const char *a) +static bool address_uses_unicode(const char *a) { if (!a) - return 0; + return false; while (*a) { if ((unsigned char) *a & (1<<7)) - return 1; + return true; a++; } - return 0; + return false; } -- 2.40.0