net: rename u16 to fix shadowed declaration
authorGage Eads <gage.eads@intel.com>
Mon, 4 Jun 2018 19:40:00 +0000 (14:40 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 27 Jun 2018 20:55:54 +0000 (22:55 +0200)
commit68248ad1b9a8a5e84611346b699dd5d4f1bbe37d
tree394535e6375562c792c4008833e77fbf16fc80d6
parente690338a7b8549679deb257c3a3f576fb900d509
net: rename u16 to fix shadowed declaration

This patch renames u16 to u16_buf. u16 as a variable name causes a shadowed
declaration warning if, for example, the application also typedefs u16
(e.g. by including a header containing "typedef unsigned short u16") and
the application is built with -Wshadow.

Signed-off-by: Gage Eads <gage.eads@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_net/rte_ip.h