hash: fix header for C++
authorThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 5 Feb 2016 16:06:05 +0000 (17:06 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 21 Feb 2016 10:47:57 +0000 (11:47 +0100)
commitfa2f06b70e167de82040a3783e6033a23abdddf5
treefd2ed36def2658af96f64b8a7281b01f5a4b09bf
parent1a8dbad49a9f053c35452a8e448344239a724651
hash: fix header for C++

When built in a C++ application, the jhash include fails:

rte_jhash.h:123:22: error:
invalid conversion from ‘const void*’ to ‘const uint32_t*’ [-fpermissive]
  const uint32_t *k = key;
                      ^
The cast must be explicit for C++.

Fixes: 8718219a8737 ("hash: add new jhash functions")

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_hash/rte_jhash.h