mirror of
https://github.com/arampoire/onetun.git
synced 2026-01-16 08:20:23 -05:00
Remove s from end of start tunnel function name
This commit is contained in:
parent
443d540025
commit
3ad2ad4540
2 changed files with 2 additions and 3 deletions
|
|
@ -4,7 +4,6 @@
|
|||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
/**
|
||||
* The capacity of the channel for received IP packets.
|
||||
*/
|
||||
|
|
@ -87,4 +86,4 @@ struct PortForwardConfig *onetun_new_port_forward(const char *source,
|
|||
* # Safety
|
||||
* All pointers must be valid and not null.
|
||||
*/
|
||||
int32_t onetun_start_tunnels(struct Config *config, struct Bus *bus);
|
||||
int32_t onetun_start_tunnel(struct Config *config, struct Bus *bus);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ use crate::{
|
|||
/// # Safety
|
||||
/// All pointers must be valid and not null.
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn onetun_start_tunnels(config: *mut config::Config, bus: *mut Bus) -> i32 {
|
||||
pub unsafe extern "C" fn onetun_start_tunnel(config: *mut config::Config, bus: *mut Bus) -> i32 {
|
||||
// Unbox the structs
|
||||
let config = *(std::boxed::Box::from_raw(config));
|
||||
let bus = *(std::boxed::Box::from_raw(bus));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue