[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181119174018.0629445a@cakuba.netronome.com>
Date: Mon, 19 Nov 2018 17:40:18 -0800
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: dsahern@...il.com, oss-drivers@...ronome.com,
netdev@...r.kernel.org
Subject: Re: [PATCH iproute2-next 2/8] json: add %hhu helpers
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.
Powered by blists - more mailing lists