[PATCH 1/9] route/link: pass proper type to sizeof() for calloc() in vlan_parse()
Thomas Graf
tgraf at suug.ch
Tue Jun 10 10:05:45 PDT 2014
On 06/10/14 at 06:59pm, Thomas Haller wrote:
> This fixes the following compiler warning:
> lib/route/link/vlan.c:148:23:warning – Result of 'calloc' is converted to a pointer of type 'struct vlan_map', which is incompatible with sizeof operand type 'struct ifla_vlan_qos_mapping'
>
> This was not a real problem, because the types are effectively
> the same.
>
> Signed-off-by: Thomas Haller <thaller at redhat.com>
Acked-by: Thomas Graf <tgraf at suug.ch>
More information about the libnl
mailing list