diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-11-23 19:47:05 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-11-23 19:47:05 +0000 |
commit | 3cb8d60ae09b5a2ab1a9a3a1dc4e578709498483 (patch) | |
tree | 6dc9166b70d1cea223109c3ede01d13a797aa6ad /sys/net/route.h | |
parent | 95584f18d37c4eed07e72fef7f3794f6825a15ea (diff) |
Move srtdnstosa() static inline function under #ifdef _KERNEL. This way
3rd party software stuck with c90 will still compile. Quick fix since
RTM_PROPOSAL will most porbably change later on.
Reported by naddy and aja
Diffstat (limited to 'sys/net/route.h')
-rw-r--r-- | sys/net/route.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/route.h b/sys/net/route.h index 090d0cd8baf..c4cd0de09b5 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.179 2019/11/22 06:20:15 claudio Exp $ */ +/* $OpenBSD: route.h,v 1.180 2019/11/23 19:47:04 claudio Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -317,12 +317,16 @@ struct sockaddr_rtdns { char sr_dns[RTDNS_LEN]; }; +#ifdef _KERNEL + static inline struct sockaddr * srtdnstosa(struct sockaddr_rtdns *sdns) { return ((struct sockaddr *)(sdns)); } +#endif + #define RTSTATIC_LEN 128 struct sockaddr_rtstatic { |