CVSROOT: /cvs Module name: src Changes by: j...@cvs.openbsd.org 2014/04/18 04:48:30
Modified files: sys/netinet : in_pcb.c in_pcb.h udp_usrreq.c sys/netinet6 : icmp6.c in6_pcb.c in6_src.c ip6_var.h nd6_nbr.c raw_ip6.c udp6_output.c Log message: Invert the signature logic of in{,6}_selectsrc, make them return the error code and pass the resulting source address back to the caller through a pointer, as suggested by chrisz. This gives us more readable code, and eases the deletion of useless checks in the callers' error path. Add a bunch of "0 -> NULL" conversions, while here. ok chrisz@ mpi@