aboutsummaryrefslogtreecommitdiff
path: root/src/olm.cpp
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-07-15 13:24:26 +0100
committerMark Haines <mark.haines@matrix.org>2015-07-15 13:24:26 +0100
commit137aa31e95d586a6739bbba9c2ea82debb6a5c43 (patch)
tree1df522ce916d255fd29a5cee53978cd1e59b7b65 /src/olm.cpp
parentc965a0e619c6343b76b83276ba46a7fe1e9552ad (diff)
olm_account_last_error and olm_clear_account should take an Account not a Session
Diffstat (limited to 'src/olm.cpp')
-rw-r--r--src/olm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/olm.cpp b/src/olm.cpp
index 53cae54..b121ec7 100644
--- a/src/olm.cpp
+++ b/src/olm.cpp
@@ -178,7 +178,7 @@ size_t olm_error() {
const char * olm_account_last_error(
- OlmSession * account
+ OlmAccount * account
) {
unsigned error = unsigned(from_c(account)->last_error);
if (error < sizeof(ERRORS)) {
@@ -228,7 +228,7 @@ OlmSession * olm_session(
size_t olm_clear_account(
- OlmSession * account
+ OlmAccount * account
) {
/* Clear the memory backing the account */
olm::unset(account, sizeof(olm::Account));