]> xenbits.xensource.com Git - libvirt.git/commit
util: Fix virStorageBackendIQNFound() to work on FreeBSD
authorAndrea Bolognani <abologna@redhat.com>
Wed, 25 Jul 2018 09:18:39 +0000 (11:18 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 25 Jul 2018 11:23:10 +0000 (13:23 +0200)
commitf025c1bf7962866a31b55ac21cd8dd7af1317092
treea53adad99a9a4262b91aaad8bb725523b0a865a4
parentf26958462eabd774777ef73479fb3ee31deb7309
util: Fix virStorageBackendIQNFound() to work on FreeBSD

Despite being standardized in POSIX.1-2008, the 'm'
sscanf() modifier is currently not available on FreeBSD.

Reimplement parsing without sscanf() to work around the
issue.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
src/util/viriscsi.c