Skip to content

Commit

Permalink
fixup! Remove global API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkisemils committed Dec 20, 2024
1 parent 0045246 commit 276ca07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mullvad-api/src/ffi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ mod test {
fn create_client(addr: &SocketAddr) -> MullvadApiClient {
let mut client = MaybeUninit::<MullvadApiClient>::uninit();
let cstr_address = CString::new(addr.to_string()).unwrap();
let _client = unsafe {
unsafe {
mullvad_api_client_initialize(
client.as_mut_ptr(),
cstr_address.as_ptr().cast(),
Expand All @@ -494,7 +494,7 @@ mod test {
let client = create_client(&server.socket_address());

let mut account_buf = vec![0 as libc::c_char; 100];
unsafe { mullvad_api_create_account(client, (&account_buf.as_mut_ptr()).cast()).unwrap() };
unsafe { mullvad_api_create_account(client, account_buf.as_mut_ptr().cast()).unwrap() };
}

fn test_server() -> ServerGuard {
Expand Down

0 comments on commit 276ca07

Please sign in to comment.