mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 23:50:27 +00:00
tests/libalias: Make inline functions static inline
In C, plain inline functions should never be used: they should be declared either static inline or extern inline. In this case, they are clearly meant to be static inline. MFC after: 3 days
This commit is contained in:
parent
e0ceec676d
commit
46aec7fae4
|
@ -48,7 +48,7 @@ void hexdump(void *p, size_t len);
|
|||
struct ip * ip_packet(u_char protocol, size_t len);
|
||||
struct udphdr * set_udp(struct ip *p, u_short sport, u_short dport);
|
||||
|
||||
inline int
|
||||
static inline int
|
||||
addr_eq(struct in_addr a, struct in_addr b)
|
||||
{
|
||||
return a.s_addr == b.s_addr;
|
||||
|
@ -56,7 +56,7 @@ addr_eq(struct in_addr a, struct in_addr b)
|
|||
|
||||
#define a2h(a) ntohl(a.s_addr)
|
||||
|
||||
inline int
|
||||
static inline int
|
||||
rand_range(int min, int max)
|
||||
{
|
||||
return min + rand()%(max - min);
|
||||
|
|
Loading…
Reference in a new issue