Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/net.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static inline void | static inline void | ||||
sock_release(struct socket *so) | sock_release(struct socket *so) | ||||
{ | { | ||||
soclose(so); | soclose(so); | ||||
} | } | ||||
hselasky: Please don't declare static variables in header files.
Make them global and possibly into… | |||||
int linuxkpi_net_ratelimit(void); | |||||
static inline int | |||||
net_ratelimit(void) | |||||
{ | |||||
return (linuxkpi_net_ratelimit()); | |||||
} | |||||
#endif /* _LINUX_NET_H_ */ | #endif /* _LINUX_NET_H_ */ |
Please don't declare static variables in header files.
Make them global and possibly into SYSCTLs.