tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: patch make struct protosw pr_input non-variadic
> On Jan 12, 2017, at 10:14 AM, Taylor R Campbell <campbell+netbsd-tech-net%mumble.net@localhost> wrote:
>
> Date: Thu, 12 Jan 2017 09:45:52 -0800
> From: Matt Thomas <matt%3am-software.com@localhost>
>
> I don't think the additional ugliness is worth it. Why not just
>
> #define pr_input do_not_use
>
> to prevent it's use?
>
> I don't understand how that helps to solve the problem of giving
> compiler-checked protocol-dependent types to the input routines.
because they only be called by netinet/netinet6 files. If those sources use pr_input they will get an error. If they use pr_ipinput (or whatever the variant is called) they won't get an error.
Home |
Main Index |
Thread Index |
Old Index