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 12:43:01 +02:00
2015-08-03 12:42:55 +02:00
2015-08-03 00:38:27 +02:00
2015-08-03 17:39:11 +02:00
2015-07-30 20:16:04 +02:00
2015-08-03 17:50:07 +02:00
2015-08-03 00:38:26 +02:00
2015-07-09 00:56:40 +02:00
2015-07-09 00:56:40 +02:00
2015-03-23 14:29:31 +01:00
2013-03-07 10:57:42 +01:00
2015-05-22 15:51:38 +02:00
2013-07-25 14:43:06 +02:00
2015-07-27 04:27:15 +02:00
2014-06-11 00:29:34 +02:00
Description
No description provided
128 MiB
Languages
C 99.1%
Meson 0.5%
Python 0.2%
Shell 0.1%