From 6044d9dcb1b996b1ba269174441eebf51a96439b Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 19 Jun 2015 19:12:57 +0100 Subject: [PATCH] fix error on load: 'undefined symbol: response_is_ok' happened for me with gcc5. Patch by Charles Lehner. --- src/plugins/managesieve/managesieve.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/managesieve/managesieve.c b/src/plugins/managesieve/managesieve.c index 7dc23b10f..14f89dbff 100644 --- a/src/plugins/managesieve/managesieve.c +++ b/src/plugins/managesieve/managesieve.c @@ -299,7 +299,7 @@ static gint sieve_auth(SieveSession *session) return SE_OK; } -void sieve_session_putscript_cb(SieveSession *session, SieveResult *result) +static void sieve_session_putscript_cb(SieveSession *session, SieveResult *result) { /* Remove script name from the beginning the response, * which are added by Dovecot/Pigeonhole */ @@ -321,22 +321,22 @@ void sieve_session_putscript_cb(SieveSession *session, SieveResult *result) session->current_cmd->cb(session, result, session->current_cmd->data); } -inline gboolean response_is_ok(const char *msg) +static inline gboolean response_is_ok(const char *msg) { return !strncmp(msg, "OK", 2) && (!msg[2] || msg[2] == ' '); } -inline gboolean response_is_no(const char *msg) +static inline gboolean response_is_no(const char *msg) { return !strncmp(msg, "NO", 2) && (!msg[2] || msg[2] == ' '); } -inline gboolean response_is_bye(const char *msg) +static inline gboolean response_is_bye(const char *msg) { return !strncmp(msg, "BYE", 3) && (!msg[3] || msg[3] == ' '); } -void sieve_got_capability(SieveSession *session, gchar *cap_name, +static void sieve_got_capability(SieveSession *session, gchar *cap_name, gchar *cap_value) { if (strcmp(cap_name, "SASL") == 0) {