On Thu, Mar 10, 2016 at 05:54:05AM +0100, Martin Kletzander wrote: > Since we have the opportunity now, let's save some precious code lines. > > Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx> > --- > daemon/admin.c | 45 --------------------------------- > daemon/admin_server.c | 6 ++--- > daemon/admin_server.h | 6 ++--- > po/POTFILES.in | 1 - > src/admin/admin_protocol.x | 4 +-- > src/admin/admin_remote.c | 63 ---------------------------------------------- > 6 files changed, 8 insertions(+), 117 deletions(-) > ACK, beautiful diffstat. The new generated version of adminDispatchConnectListServers has the following check: + if (!priv->dmn) { + virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open")); + goto cleanup; + } Is it dead code or has it been missing in the manual implementation? Jan -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list