]> xenbits.xensource.com Git - libvirt.git/commit
phyp: use consistent return string handling
authorEric Blake <eblake@redhat.com>
Thu, 14 Apr 2011 19:02:17 +0000 (13:02 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 15 Apr 2011 21:26:27 +0000 (15:26 -0600)
commita1b46e714aeb02bb7c211ecc730d9a6a4af627ee
tree0bff0de13d0f647d76223cd7416cb6deef3d78ed
parente00c892f0b99fe5de4a1b8583191277c094012e6
phyp: use consistent return string handling

Use the name 'ret' for all phypExec results, to make it easier
to wrap phypExec.  Don't allow a possibly NULL ret through printf.

* src/phyp/phyp_driver.c (phypBuildVolume, phypDestroyStoragePool)
(phypBuildStoragePool, phypBuildLpar): Avoid NULL dereference.
(phypInterfaceDestroy): Avoid redundant free.
(phypVolumeLookupByPath, phypVolumeGetPath): Use consistent
naming.
src/phyp/phyp_driver.c