]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: use new virendian.h macros
authorEric Blake <eblake@redhat.com>
Thu, 7 Feb 2013 01:57:13 +0000 (18:57 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 12 Feb 2013 16:00:17 +0000 (09:00 -0700)
commit731ad692408fb05be5f4b6720ad2bf6c5812bad2
treeb02c65c17de4147531bf5204b4241ad46969f16f
parentc6f1060ca7d51e70228718ceee4bba7bfbad6a38
util: use new virendian.h macros

This makes code easier to read, by avoiding lines longer than
80 columns and removing the repetition from the callers.

* src/util/virstoragefile.c (qedGetHeaderUL, qedGetHeaderULL):
Delete in favor of more generic macros.
(qcow2GetBackingStoreFormat, qcowXGetBackingStore)
(qedGetBackingStore, virStorageFileMatchesVersion)
(virStorageFileGetMetadataInternal): Use new macros.
* src/cpu/cpu_x86.c (x86VendorLoad): Likewise.
src/cpu/cpu_x86.c
src/util/virstoragefile.c