]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: storage: Convert disk locality check to switch statement
authorPeter Krempa <pkrempa@redhat.com>
Wed, 3 Sep 2014 16:54:56 +0000 (18:54 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 10 Sep 2014 11:12:45 +0000 (13:12 +0200)
commitdc12cec6f672575515e7ff9d043010f6275065d8
tree5e63d010dd34e15363f8aa35d452eb5a1d022635
parent15784e21cf763ee327a307586bda0b2800973384
util: storage: Convert disk locality check to switch statement

To allow the compiler to track future additions of disk types, convert
the function to use a switch statement with the correct type.
src/util/virstoragefile.c