mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-07 03:35:07 -05:00
rpc: virnetserver: virNetServerAddService() to void
virNetServerAddService() return value is invariant, so change it type and remove all dependent checks. Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru> Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
committed by
Michal Privoznik
parent
46c9458654
commit
bce48d99a7
@@ -127,10 +127,8 @@ testCreateServer(const char *server_name, const char *host, int family)
|
||||
5)))
|
||||
goto error;
|
||||
|
||||
if (virNetServerAddService(srv, svc1) < 0)
|
||||
goto error;
|
||||
if (virNetServerAddService(srv, svc2) < 0)
|
||||
goto error;
|
||||
virNetServerAddService(srv, svc1);
|
||||
virNetServerAddService(srv, svc2);
|
||||
|
||||
if (virNetSocketNewConnectSockFD(fdclient[0], &sk1) < 0)
|
||||
goto error;
|
||||
|
||||
Reference in New Issue
Block a user