]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/bsdapp/eal/eal_pci.c
pci: fix build on FreeBSD
[dpdk.git] / lib / librte_eal / bsdapp / eal / eal_pci.c
index ff56cd32b1a48341e0b77e4eb5bb1218ab4bafda..6fa0d0884e2efb568e45ad6d309a9efb25cc3644 100644 (file)
@@ -459,7 +459,7 @@ int rte_eal_pci_write_config(const struct rte_pci_device *dev,
                goto error;
        }
 
-       memcpy(pi.pi_data, buf, len);
+       memcpy(&pi.pi_data, buf, len);
 
        fd = open("/dev/pci", O_RDONLY);
        if (fd < 0) {