[libvirt] [PATCH 01/11] Remove useless code in error path of getnameinfo()

Eric Blake eblake at redhat.com
Thu Oct 21 19:41:57 UTC 2010


On 10/21/2010 12:17 PM, Daniel P. Berrange wrote:
> If getnameinfo() with NI_NUMERICHOST set fails, there are no
> grounds to expect inet_ntop to succeed, since these calls
> are functionally equivalent. Remove useless inet_ntop code
> in the getnameinfo() error path.
>
> * daemon/remote.c, src/remote/remote_driver.c: Remove
>    calls to inet_ntop
> ---
>   daemon/remote.c            |   20 +++-----------------
>   src/remote/remote_driver.c |   20 +++-----------------
>   2 files changed, 6 insertions(+), 34 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the libvir-list mailing list