]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
use 'static inline' instead of 'inline static'
authorAntonio Quartulli <a@unstable.cc>
Mon, 17 Jan 2022 09:35:08 +0000 (10:35 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 18 Jan 2022 12:51:45 +0000 (13:51 +0100)
There are 2 occurrences where the order 'inline static' is used when
defining a function, while the rest of the code uses the definitely
more common form 'static inline'.

Convert those 2 occurrences to the common format.

Reported-by: Lev Stipakov <lev@openvpn.net>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <20220117093508.17681-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23554.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/buffer.h
src/openvpn/proto.h

index 8017130f6f2ca1fe8d0e16d24abb4bb6411e0617..d2dbb64b90952ea9b6a17972db0386771209c9e3 100644 (file)
@@ -198,7 +198,7 @@ bool buf_init_debug(struct buffer *buf, int offset, const char *file, int line);
 
 
 /* inline functions */
-inline static void
+static inline void
 gc_freeaddrinfo_callback(void *addr)
 {
     freeaddrinfo((struct addrinfo *) addr);
index 94010a98fd3a505e12a548023b3f8b935953bafa..0062951d5e6abbcc7db3e1fefeb06e7395d868b4 100644 (file)
@@ -251,7 +251,7 @@ struct ip_tcp_udp_hdr {
  * This returns an ip protocol version of packet inside tun
  * and offset of IP header (via parameter).
  */
-inline static int
+static inline int
 get_tun_ip_ver(int tunnel_type, struct buffer *buf, int *ip_hdr_offset)
 {
     int ip_ver = -1;