aboutsummaryrefslogtreecommitdiff
path: root/xcode/OLMKit/OLMAccount.m
diff options
context:
space:
mode:
authormanuroe <manu@matrix.org>2016-11-18 11:39:39 +0100
committermanuroe <manu@matrix.org>2016-11-18 11:39:39 +0100
commit93926e90477355c671b50704711a58889832b077 (patch)
tree6d15abb79d902c7b9a87e40b05eb08ed7e59fa30 /xcode/OLMKit/OLMAccount.m
parent29de7825c9607955d061c5fe75c7f29d78dfaec5 (diff)
OLMKit: Fixed warnings in objc wrapper
Diffstat (limited to 'xcode/OLMKit/OLMAccount.m')
-rw-r--r--xcode/OLMKit/OLMAccount.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/xcode/OLMKit/OLMAccount.m b/xcode/OLMKit/OLMAccount.m
index b194a74..2f30fb6 100644
--- a/xcode/OLMKit/OLMAccount.m
+++ b/xcode/OLMKit/OLMAccount.m
@@ -74,7 +74,7 @@
return self;
}
-- (size_t) maxOneTimeKeys {
+- (NSUInteger) maxOneTimeKeys {
return olm_account_max_number_of_one_time_keys(_account);
}
@@ -156,7 +156,7 @@
- (BOOL) removeOneTimeKeysForSession:(OLMSession *)session {
NSParameterAssert(session != nil);
if (!session) {
- return nil;
+ return NO;
}
size_t result = olm_remove_one_time_keys(self.account, session.session);
if (result == olm_error()) {