Fix cast errors with clang
Fix cast errors with clang

Build with clang fails with:

  CC       util/libvirt_util_la-virsocketaddr.lo
util/virsocketaddr.c:904:17: error: cast from 'struct sockaddr *' to
'struct sockaddr_in *' increases required alignment from 1 to 4
[-Werror,-Wcast-align]
        inet4 = (struct sockaddr_in*) res->ai_addr;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
util/virsocketaddr.c:909:17: error: cast from 'struct sockaddr *' to
'struct sockaddr_in6 *' increases required alignment from 1 to 4
[-Werror,-Wcast-align]
        inet6 = (struct sockaddr_in6*) res->ai_addr;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.

Fix that by replacing virSocketAddrParseInternal() call with
virSocketAddrParse() in the virSocketAddrIsNumericLocalhost() function.
virSocketAddrParse stores an address in virSocketAddr.
virSocketAddr uses a union to store an address, so it doesn't
need casting.

taget/libvirt,fabianfreyer/libvirt,zippy2/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,taget/libvirt,eskultety/libvirt,jfehlig/libvirt,elmarco/libvirt,crobinso/libvirt,taget/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,datto/libvirt,agx/libvirt,shugaoye/libvirt,eskultety/libvirt,jardasgit/libvirt,crobinso/libvirt,agx/libvirt,olafhering/libvirt,shugaoye/libvirt,datto/libvirt,zippy2/libvirt,libvirt/libvirt,elmarco/libvirt,rlaager/libvirt,VenkatDatta/libvirt,rlaager/libvirt,taget/libvirt,olafhering/libvirt,shugaoye/libvirt,olafhering/libvirt,fabianfreyer/libvirt,elmarco/libvirt,elmarco/libvirt,crobinso/libvirt,nertpinx/libvirt,shugaoye/libvirt,rlaager/libvirt,datto/libvirt,nertpinx/libvirt,eskultety/libvirt,fabianfreyer/libvirt,rlaager/libvirt,nertpinx/libvirt,rlaager/libvirt,agx/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,eskultety/libvirt,shugaoye/libvirt,libvirt/libvirt,jardasgit/libvirt,nertpinx/libvirt,datto/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,datto/libvirt,olafhering/libvirt,agx/libvirt,crobinso/libvirt,andreabolognani/libvirt,agx/libvirt,zippy2/libvirt,eskultety/libvirt,libvirt/libvirt,VenkatDatta/libvirt,taget/libvirt,elmarco/libvirt,andreabolognani/libvirt,jardasgit/libvirt,zippy2/libvirt,jardasgit/libvirt,jfehlig/libvirt,libvirt/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,jfehlig/libvirt