diff --git a/enzevalos_iphone/CHelpers.swift b/enzevalos_iphone/CHelpers.swift index d79686e1421dcaa6a722afdf935ed3e26f2935dd..7a492ac9b17f086d56161c8cb635c4350ad73997 100644 --- a/enzevalos_iphone/CHelpers.swift +++ b/enzevalos_iphone/CHelpers.swift @@ -14,7 +14,7 @@ import Foundation */ func createCStrArr(sarr: [String]) -> UnsafeMutablePointer<UnsafeMutablePointer<Int8>?>?{ let len = sarr.count - var carr = init_str_arr(Int32(len)) + let carr = init_str_arr(Int32(len)) for i in 0..<len { let str = sarr[i] diff --git a/enzevalos_iphone/c/general-helpers.c b/enzevalos_iphone/c/general-helpers.c index bc3c21dff6803b3f0f62d7654fa7e86b0b8d63ff..8165cf452a4bb9763fc3d588d9a18c775e40968f 100644 --- a/enzevalos_iphone/c/general-helpers.c +++ b/enzevalos_iphone/c/general-helpers.c @@ -68,7 +68,7 @@ char *bin_to_hex(unsigned char *bin, int len) char *res = malloc(2*len+1); for (int i =0;i<len;i++) { - sprintf(buf, "%02x", bin[i]); + sprintf((char*) buf, "%02x", bin[i]); res[i*2]=buf[0]; res[i*2+1]=buf[1]; } diff --git a/enzevalos_iphoneTests/CryptoTests.swift b/enzevalos_iphoneTests/CryptoTests.swift index 06cbf1c028d152034c6a43823869733a5ea7082e..3b2d859734c3195805192c54b9966dae2b03b9ad 100644 --- a/enzevalos_iphoneTests/CryptoTests.swift +++ b/enzevalos_iphoneTests/CryptoTests.swift @@ -630,7 +630,7 @@ class CryptoTests: XCTestCase { XCTFail("No signed data") return } - guard let publickey = pgp.loadKey(id: mail.firstKey!.keyID)?.publicKey, keys.count > 0 else { + guard let _ = pgp.loadKey(id: mail.firstKey!.keyID)?.publicKey, keys.count > 0 else { XCTFail("Can not load key") return } diff --git a/enzevalos_iphoneTests/GeneratedMocks.swift b/enzevalos_iphoneTests/GeneratedMocks.swift index f82a6cb77fc10a62ea9f44d33c7a1bb38807baf9..3bd98d151c146b68fd67fa6aef4f7e66adfcd6ce 100644 --- a/enzevalos_iphoneTests/GeneratedMocks.swift +++ b/enzevalos_iphoneTests/GeneratedMocks.swift @@ -1,4 +1,4 @@ -// MARK: - Mocks generated from file: enzevalos_iphone/AuthenticationModel.swift at 2020-03-31 16:56:08 +0000 +// MARK: - Mocks generated from file: enzevalos_iphone/AuthenticationModel.swift at 2020-04-03 07:21:06 +0000 // // AuthenticationModel.swift @@ -653,7 +653,7 @@ import Foundation } -// MARK: - Mocks generated from file: enzevalos_iphone/AuthenticationViewModel.swift at 2020-03-31 16:56:08 +0000 +// MARK: - Mocks generated from file: enzevalos_iphone/AuthenticationViewModel.swift at 2020-04-03 07:21:06 +0000 // // AuthenticationViewModel.swift