X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fbsd%2Fdevice.c;h=57029d5d7e0f6b387478146384f6bf2b3f8fdb51;hb=bf7abd5a059d27dc544b435b67f7f1d5419d318b;hp=db506e5a17074342c5b52b66e91a50b57336a427;hpb=8156f3760973c17256a93ab48016b8b84f5444de;p=tinc diff --git a/src/bsd/device.c b/src/bsd/device.c index db506e5a..57029d5d 100644 --- a/src/bsd/device.c +++ b/src/bsd/device.c @@ -85,7 +85,7 @@ static bool setup_utun(void) { return false; } - int unit = -1; + long unit = -1; char *p = strstr(device, "utun"), *e = NULL; if(p) { @@ -351,7 +351,7 @@ static void close_device(void) { } static bool read_packet(vpn_packet_t *packet) { - int inlen; + ssize_t inlen; switch(device_type) { case DEVICE_TYPE_TUN: