]> tinc-vpn.org Git - tinc/blobdiff - src/linux/device.c
Fix -Wsign-compare error in keys.c
[tinc] / src / linux / device.c
index 94e223f7ad9027d4da404a69be3d27bd5a79aaa4..3050fe2f1085682e25c92562ca2d528dd95d56f5 100644 (file)
 #include "../device.h"
 #include "../logger.h"
 #include "../names.h"
 #include "../device.h"
 #include "../logger.h"
 #include "../names.h"
-#include "../net.h"
 #include "../route.h"
 #include "../route.h"
-#include "../utils.h"
 #include "../xalloc.h"
 #include "../xalloc.h"
-#include "../device.h"
 
 typedef enum device_type_t {
        DEVICE_TYPE_TUN,
 
 typedef enum device_type_t {
        DEVICE_TYPE_TUN,
@@ -145,7 +142,7 @@ static void close_device(void) {
 }
 
 static bool read_packet(vpn_packet_t *packet) {
 }
 
 static bool read_packet(vpn_packet_t *packet) {
-       int inlen;
+       size_t inlen;
 
        switch(device_type) {
        case DEVICE_TYPE_TUN:
 
        switch(device_type) {
        case DEVICE_TYPE_TUN: