diff --git a/include/olm/olm.hh b/include/olm/olm.hh
index 6b102d2671b59d1a17fc0987fe770fb1cf0f1935..64454e62936baf94956f6bdf32403e928786aa2a 100644
--- a/include/olm/olm.hh
+++ b/include/olm/olm.hh
@@ -52,7 +52,7 @@ size_t olm_error();
 /** A null terminated string describing the most recent error to happen to an
  * account */
 const char * olm_account_last_error(
-    OlmSession * account
+    OlmAccount * account
 );
 
 /** A null terminated string describing the most recent error to happen to a
@@ -63,7 +63,7 @@ const char * olm_session_last_error(
 
 /** Clears the memory used to back this account */
 size_t olm_clear_account(
-    OlmSession * account
+    OlmAccount * account
 );
 
 /** Clears the memory used to back this session */
diff --git a/src/olm.cpp b/src/olm.cpp
index 53cae541ad792cf9d345e10b168b08bb3ea752ab..b121ec79ab2d325079c033ca39f8aeef353b69b2 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));