]> git.meshlink.io Git - meshlink/blobdiff - src/linux/device.c
Remove unnecessary parentheses from sizeof, apply sizeof to variables instead of...
[meshlink] / src / linux / device.c
index 90ba384921fe337bd374be6fca086626886ddd63..5be210a582f6eb2b33b8916fab0b8b92dcd9b229 100644 (file)
@@ -75,7 +75,7 @@ bool setup_device(void) {
 #ifdef HAVE_LINUX_IF_TUN_H
        /* Ok now check if this is an old ethertap or a new tun/tap thingie */
 
-       memset(&ifr, 0, sizeof(ifr));
+       memset(&ifr, 0, sizeof ifr);
        if(routing_mode == RMODE_ROUTER) {
                ifr.ifr_flags = IFF_TUN;
                device_type = DEVICE_TYPE_TUN;