On Sat, 29 Jul 2006, Masahide NAKAMURA wrote:

> +                     remote = (xfrm[i]->type->remote_addr) ?
> +                             (struct 
> in6_addr*)xfrm[i]->type->remote_addr(xfrm[i], (xfrm_address_t *)remote):
> +                             (struct in6_addr*)&xfrm[i]->id.daddr;
> +                     local  = (xfrm[i]->type->local_addr) ?
> +                             (struct 
> in6_addr*)xfrm[i]->type->local_addr(xfrm[i], (xfrm_address_t *)local):
> +                             (struct in6_addr*)&xfrm[i]->props.saddr;

Again, it'd make the code so much cleaner to provide static inline 
wrappers for all of these types of:

        foo = op ? op->() : bar;
and

        if (op)
                bar = op->();


-- 
James Morris
<[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to