From 3d52205097bee3106de9776dae8bcc93eca7ab72 Mon Sep 17 00:00:00 2001 From: Lev Stipakov Date: Fri, 6 Sep 2019 18:40:37 +0300 Subject: [PATCH] tun.h: change tun_set() return value type to void This function's return value is never used, so make it void. Signed-off-by: Lev Stipakov Acked-by: Antonio Quartulli Acked-by: David Sommerseth 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 --- src/openvpn/tun.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/openvpn/tun.h b/src/openvpn/tun.h index 69831c45e..475643ac9 100644 --- a/src/openvpn/tun.h +++ b/src/openvpn/tun.h @@ -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); -- 2.47.2