]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
tun.h: change tun_set() return value type to void
authorLev Stipakov <lstipakov@gmail.com>
Fri, 6 Sep 2019 15:40:37 +0000 (18:40 +0300)
committerGert Doering <gert@greenie.muc.de>
Wed, 18 Sep 2019 11:28:16 +0000 (13:28 +0200)
This function's return value is never used, so make it void.

Signed-off-by: Lev Stipakov <lstipakov@gmail.com>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <1567784437-25922-1-git-send-email-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18804.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun.h

index 69831c45e66628a9120e79f78e9ce11be8982f49..475643ac9176fc357c5f88b5f3b5470616a723b2 100644 (file)
@@ -513,7 +513,7 @@ tun_event_handle(const struct tuntap *tt)
 #endif
 }
 
-static inline unsigned int
+static inline void
 tun_set(struct tuntap *tt,
         struct event_set *es,
         unsigned int rwflags,
@@ -539,7 +539,6 @@ tun_set(struct tuntap *tt,
 #endif
         tt->rwflags_debug = rwflags;
     }
-    return rwflags;
 }
 
 const char *tun_stat(const struct tuntap *tt, unsigned int rwflags, struct gc_arena *gc);