diff --git a/message_cache.cc b/message_cache.cc index ff00178..39f684b 100644 --- a/message_cache.cc +++ b/message_cache.cc @@ -225,7 +225,7 @@ namespace pEp { stringlist_t **keylist, PEP_rating *rating, PEP_decrypt_flags_t *flags - ) + ) { if (!src || emptystr(src->id)) return PEP_ILLEGAL_VALUE; diff --git a/message_cache.hh b/message_cache.hh index 2787db2..2c7f34f 100644 --- a/message_cache.hh +++ b/message_cache.hh @@ -22,7 +22,7 @@ namespace pEp { std::mutex _mtx; public: - enum which { msg_src, msg_dst }; + enum which { msg_src = 0, msg_dst = 1 }; static PEP_STATUS cache_mime_decode_message( const char *mimetext,