]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage_encryption: silence clang warning
authorEric Blake <eblake@redhat.com>
Fri, 7 May 2010 20:34:15 +0000 (14:34 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 10 May 2010 19:53:12 +0000 (13:53 -0600)
commit23958aedf43500a8b9aac06e0fd720884d1343c1
tree4c315aab01309a2bc5213532ad41925dfa927431
parent180d4b2b3b79c768f4a6444181d7f021771fab66
storage_encryption: silence clang warning

For printf("%*s",foo,bar), clang complains if foo is not int:

warning: field width should have type 'int', but argument has
type 'unsigned int' [-Wformat]

* src/conf/storage_encryption_conf.c
(virStorageEncryptionSecretFormat, virStorageEncryptionFormat):
Use correct type.
* src/conf/storage_encryption_conf.h (virStorageEncryptionFormat):
Likewise.
src/conf/storage_encryption_conf.c
src/conf/storage_encryption_conf.h