mirror of https://github.com/deavmi/libtun.git
Changed function signature
This commit is contained in:
parent
8e3796f586
commit
bac2d3474a
|
@ -9,7 +9,7 @@ import core.stdc.stdio;
|
||||||
/**
|
/**
|
||||||
* TUN maintenance routines in `test.c`
|
* TUN maintenance routines in `test.c`
|
||||||
*/
|
*/
|
||||||
extern (C) int createTun(char* interfaceName, short iffFlags);
|
extern (C) int createTun(char* interfaceName, int iffFlags);
|
||||||
extern (C) int destroyTun(int fd);
|
extern (C) int destroyTun(int fd);
|
||||||
|
|
||||||
public class TUNAdapter
|
public class TUNAdapter
|
||||||
|
@ -21,7 +21,7 @@ public class TUNAdapter
|
||||||
|
|
||||||
private void init()
|
private void init()
|
||||||
{
|
{
|
||||||
int tunFD = createTun(cast(char*)"", 1);
|
int tunFD = createTun(cast(char*)"dd", 1);
|
||||||
writeln(tunFD);
|
writeln(tunFD);
|
||||||
writeln();
|
writeln();
|
||||||
writeln(destroyTun(1));
|
writeln(destroyTun(1));
|
||||||
|
|
Loading…
Reference in New Issue