libvirt/00d3c5a6-remove-dead-code.patch

53 lines
1.2 KiB
Diff
Raw Normal View History

commit 00d3c5a6032e69a3c853380ca2d8b0764d15e306
Author: Jim Fehlig <jfehlig@novell.com>
Date: Mon Jul 11 14:38:03 2011 -0600
Remove code no longer used after commit df0b57a9
Index: libvirt-0.9.3/daemon/libvirtd.h
===================================================================
--- libvirt-0.9.3.orig/daemon/libvirtd.h
+++ libvirt-0.9.3/daemon/libvirtd.h
@@ -27,10 +27,6 @@
# include <config.h>
-# if HAVE_POLKIT0
-# include <dbus/dbus.h>
-# endif
-
# include <rpc/types.h>
# include <rpc/xdr.h>
# include "remote_protocol.h"
@@ -85,30 +81,4 @@ extern virNetSASLContextPtr saslCtxt;
extern virNetServerProgramPtr remoteProgram;
extern virNetServerProgramPtr qemuProgram;
-/* Main server state */
-struct qemud_server {
- int privileged;
-
- int sigread;
- int sigwrite;
- char *logDir;
- pthread_t eventThread;
- unsigned int hasEventThread :1;
- unsigned int quitEventThread :1;
-# ifdef HAVE_AVAHI
- struct libvirtd_mdns *mdns;
-# endif
-# if HAVE_SASL
- char **saslUsernameWhitelist;
-# endif
-# if HAVE_POLKIT0
- DBusConnection *sysbus;
-# endif
-};
-
-
-# if HAVE_POLKIT
-int qemudGetSocketIdentity(int fd, uid_t *uid, pid_t *pid);
-# endif
-
#endif