[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <94ab531a-27f4-8bc5-ed3e-f792d9b8da6d@gmail.com>
Date: Tue, 20 Nov 2018 16:18:20 -0700
From: David Ahern <dsahern@...il.com>
To: Jakub Kicinski <jakub.kicinski@...ronome.com>,
Stephen Hemminger <stephen@...workplumber.org>
Cc: oss-drivers@...ronome.com, netdev@...r.kernel.org
Subject: Re: [PATCH iproute2-next 2/8] json: add %hhu helpers
On 11/19/18 6:40 PM, Jakub Kicinski wrote:
> On Mon, 19 Nov 2018 17:18:42 -0800, Stephen Hemminger wrote:
>>> void jsonw_hu_field(json_writer_t *self, const char *prop, unsigned short num)
>>> {
>>> jsonw_name(self, prop);
>>
>> Do you really need this? it turns out that because of C type
>> conversions print_uint should just work?
>
> I wondered about that for a second, but I took the existence of
> jsonw_hu_field() etc. as a proof that explicit typing is preferred.
>
Stephen: you ok with the explicit typing version?
Powered by blists - more mailing lists