]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: static int inline -> static inline int
authorDavid Lamparter <equinox@opensourcerouting.org>
Fri, 10 Apr 2015 07:14:58 +0000 (09:14 +0200)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:29 +0000 (15:33 +0000)
The BSD socket kernel interface had some weird ordering of function
attribute keywords. ("static int inline foobar()")

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 3e9e2c9fb66895df42159b98a3743e25399760df)

zebra/kernel_socket.c

index b00f9fbdff594efffbfcbeff03f222cd7e8caeb8..2a24fbecf5703daf28ed1898fcd9c2cad2d67cbe 100644 (file)
@@ -130,7 +130,7 @@ extern struct zebra_privs_t zserv_privs;
  * 2. So the compiler doesn't complain when DEST is NULL, which is only true
  *    when we are skipping the copy and incrementing to the next SA
  */
-static void inline
+static inline void
 rta_copy (union sockunion *dest, caddr_t src) {
   int len;
 #ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
@@ -280,7 +280,7 @@ int routing_sock = -1;
 /* #define DEBUG */
 
 /* Supported address family check. */
-static int inline
+static inline int
 af_check (int family)
 {
   if (family == AF_INET)