diff --git a/src/MTXClient.m b/src/MTXClient.m index 75851d1..aefd979 100644 --- a/src/MTXClient.m +++ b/src/MTXClient.m @@ -420,7 +420,7 @@ validateHomeserver(OFIRI *homeserver) - (void)sendMessage: (OFString *)message roomID: (OFString *)roomID - block: (MTXClientResponseBlock)block; + block: (MTXClientResponseBlock)block { void *pool = objc_autoreleasePoolPush(); OFString *path = [OFString stringWithFormat: diff --git a/tests/Tests.m b/tests/Tests.m index 1ff54ef..5dda8c2 100644 --- a/tests/Tests.m +++ b/tests/Tests.m @@ -37,7 +37,8 @@ OF_APPLICATION_DELEGATE(Tests) - (void)applicationDidFinishLaunching: (OFNotification *)notification { - __auto_type environment = OFApplication.environment; + OFDictionary *environment = + OFApplication.environment; if (environment[@"OBJMATRIX_USER"] == nil || environment[@"OBJMATRIX_PASS"] == nil || environment[@"OBJMATRIX_HS"] == nil) {