[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] json: Get rid of casts for `jsmntok_t`
From: |
Daniel Kiper |
Subject: |
Re: [PATCH 2/2] json: Get rid of casts for `jsmntok_t` |
Date: |
Thu, 16 Apr 2020 14:30:56 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Thu, Apr 16, 2020 at 12:20:15PM +0200, Patrick Steinhardt wrote:
> With the upstream change having landed that adds a name to the
> previously anonymous `jsmntok` typedef, we can now add a forward
> declaration for that struct in our code. As a result, we no longer have
> to store the `tokens` member of `struct grub_json` as a void pointer but
> can instead use the forward declaration, allowing us to get rid of casts
> of that field.
>
> Signed-off-by: Patrick Steinhardt <address@hidden>
Reviewed-by: Daniel Kiper <address@hidden>
Daniel