]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virpcimock: Drop needless typecast
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 13 Aug 2019 09:03:05 +0000 (11:03 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Sat, 17 Aug 2019 09:16:52 +0000 (11:16 +0200)
commitcaf6cc4fd259487362f3bd4abb2f52673603da2f
tree8950c04131091c9a1db108dda3cf3bb828b61825
parent84f9358b18346cdc2132e8026d3644696a655556
virpcimock: Drop needless typecast

When creating a PCI device, the pciDevice structure contains @id
member which holds device address (DDDD.BB:DD.F) and is type of
'char *'. But the structure is initialized from a const char and
in fact we never modify or free the @id.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Tested-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
tests/virpcimock.c