virt plugin: fix implicit conversion warning
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 31 May 2018 14:35:38 +0000 (16:35 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 31 May 2018 14:35:38 +0000 (16:35 +0200)
commitf8322f27a5cfa8dbd890e3656b77ae77758c45c7
tree8a09fbc77773d12468faf83c58e22dbfb0419240
parent027571a0a8bb157bb3fae85e7bf000ff414cb5cf
virt plugin: fix implicit conversion warning

src/virt.c:2656:41: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
  n = strlen(domname) + strlen(devpath) + 2;
    ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
src/virt.c