diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-05-27 20:11:45 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-05-27 20:11:45 +0000 |
commit | bdf53eb68647b76d3c3073c6376cbef08affc2c6 (patch) | |
tree | 91a993ceeebd7cfc943d280eec7f2dcac981d90f | |
parent | 2bfd6548a7cd8280a832178bb416b2802feb6816 (diff) |
rewrite a static inline func that simply coerces a return type of another
function as a macro.
ok reyk@ ja ja claudio@
-rw-r--r-- | sys/netinet/ip_carp.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 9130121cdde..6912dd26180 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_carp.c,v 1.138 2007/05/26 17:13:31 jason Exp $ */ +/* $OpenBSD: ip_carp.c,v 1.139 2007/05/27 20:11:44 dlg Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -222,11 +222,7 @@ void carp_update_lsmask(struct carp_softc *); struct if_clone carp_cloner = IF_CLONE_INITIALIZER("carp", carp_clone_create, carp_clone_destroy); -static __inline u_int16_t -carp_cksum(struct mbuf *m, int len) -{ - return (in_cksum(m, len)); -} +#define carp_cksum(_m, _l) ((u_int16_t)in_cksum((_m), (_l))) void carp_hmac_prepare(struct carp_softc *sc) |