Thomas Monjalon 3fc36d76ab pci: fix build on FreeBSD
Build log:
lib/librte_eal/bsdapp/eal/eal_pci.c:462:9: error:
incompatible integer to pointer conversion passing 'u_int32_t'
(aka 'unsigned int') to parameter of type 'void *'

It is fixed by passing the pointer of pi.pi_data to memcpy.

By the way, it seems strange that pi_data is initialized twice:
	.pi_data = *(u_int32_t *)buf
	memcpy(&pi.pi_data, buf, len);

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2015-08-03 17:50:07 +02:00
..
2015-08-03 17:50:07 +02:00
2015-08-03 12:43:01 +02:00
2015-06-24 12:01:14 +02:00
2015-02-24 22:12:35 +01:00
2015-08-03 13:50:00 +02:00
2015-06-19 12:11:53 +02:00
2015-08-03 12:43:01 +02:00
2015-07-16 13:44:48 +02:00