]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: prepare for refactoring
authorEric Blake <eblake@redhat.com>
Sat, 9 Feb 2013 13:41:01 +0000 (06:41 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 15 Feb 2013 23:07:00 +0000 (16:07 -0700)
commitb7df4f92d6a62f4ec7513af11590f77152e0a19b
tree39e02a5225ccd34e5fae528251493d5e8085bc7b
parent5e4946d4d98badb9982ff78d795e1bbd9829ccde
storage: prepare for refactoring

virStorageFileGetMetadataFromFD is the only caller of
virStorageFileGetMetadataFromBuf; and it doesn't care about the
difference between a return of 0 (total success) or 1
(metadata was inconsistent, but pointer was populated as best
as possible); only about a return of -1 (could not read metadata
or out of memory).  Changing the return type, and normalizing
the variable names used, will make merging the functions easier
in the next commit.

* src/util/virstoragefile.c (virStorageFileGetMetadataFromBuf):
Change return value, and rename some variables.
(virStorageFileGetMetadataFromFD): Rename some variables.
src/util/virstoragefile.c