]> xenbits.xensource.com Git - libvirt.git/commitdiff
Remove unused uid field in virsh control structure.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 10 Apr 2008 17:37:23 +0000 (17:37 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 10 Apr 2008 17:37:23 +0000 (17:37 +0000)
        * src/virsh.c: Remove unused uid field in virsh control structure.

ChangeLog
src/virsh.c

index 18ddef47f718f0df5a889d88126486a2db9b49f6..a4d9ab92b9dbb1537e7b138a1364c1a3e0781962 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Apr 10 18:33:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
+
+       Remove unused uid field in virsh control structure.
+       * src/virsh.c: Remove unused uid field in virsh control structure.
+
 Thu Apr 10 18:54:03 CEST 2008 Jim Meyering <meyering@redhat.com>
 
        HACKING: New file: begin to describe contributor/coding guidelines
index de7546c1bb8192b4c14bb301dd2b0ec83f8c9a6c..772967e5176c0c49ee1b9a58e91dd5d7be34b18f 100644 (file)
@@ -206,9 +206,6 @@ typedef struct __vshControl {
     virConnectPtr conn;         /* connection to hypervisor (MAY BE NULL) */
     vshCmd *cmd;                /* the current command */
     char *cmdstr;               /* string with command */
-#ifndef __MINGW32__
-    uid_t uid;                  /* process owner */
-#endif /* __MINGW32__ */
     int imode;                  /* interactive mode? */
     int quiet;                  /* quiet mode */
     int debug;                  /* print debug messages? */
@@ -6043,10 +6040,6 @@ vshInit(vshControl * ctl)
     if (ctl->conn)
         return FALSE;
 
-#ifndef __MINGW32__
-    ctl->uid = getuid();
-#endif
-
     vshOpenLogFile(ctl);
 
     /* set up the library error handler */