diff options
author | Simon Rozman | 2020-02-05 18:59:44 +0100 |
---|---|---|
committer | Gert Doering | 2020-03-08 20:56:58 +0100 |
commit | baef44fc8769bbd99f4d699ce9f63180c29a5455 (patch) | |
tree | d1b965105d53e6e284e8dacf569ddadf62b716de /src/openvpn/tun.h | |
parent | 4c71a647c460e276b81476a409143b97f01a03cc (diff) | |
download | openvpn-baef44fc8769bbd99f4d699ce9f63180c29a5455.zip openvpn-baef44fc8769bbd99f4d699ce9f63180c29a5455.tar.gz |
tun.c: uncrustify
Signed-off-by: Simon Rozman <simon@rozman.si>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <20200205175944.432-1-simon@rozman.si>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19366.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/tun.h')
-rw-r--r-- | src/openvpn/tun.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openvpn/tun.h b/src/openvpn/tun.h index 327d792..b38e7e9 100644 --- a/src/openvpn/tun.h +++ b/src/openvpn/tun.h @@ -196,7 +196,7 @@ struct tuntap struct tun_ring *wintun_receive_ring; #else /* ifdef _WIN32 */ int fd; /* file descriptor for TUN/TAP dev */ -#endif +#endif /* ifdef _WIN32 */ #ifdef TARGET_SOLARIS int ip_fd; @@ -517,7 +517,7 @@ wintun_ring_wrap(ULONG value) } static inline void -read_wintun(struct tuntap *tt, struct buffer* buf) +read_wintun(struct tuntap *tt, struct buffer *buf) { struct tun_ring *ring = tt->wintun_send_ring; ULONG head = ring->head; @@ -575,7 +575,7 @@ read_wintun(struct tuntap *tt, struct buffer* buf) static inline bool is_ip_packet_valid(const struct buffer *buf) { - const struct openvpn_iphdr* ih = (const struct openvpn_iphdr *)BPTR(buf); + const struct openvpn_iphdr *ih = (const struct openvpn_iphdr *)BPTR(buf); if (OPENVPN_IPH_GET_VER(ih->version_len) == 4) { @@ -631,7 +631,7 @@ write_wintun(struct tuntap *tt, struct buffer *buf) } /* copy packet size and data into ring */ - packet = (struct TUN_PACKET* )&ring->data[tail]; + packet = (struct TUN_PACKET * )&ring->data[tail]; packet->size = BLEN(buf); memcpy(packet->data, BPTR(buf), BLEN(buf)); |