aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMatthias Bolte <matthias.bolte@googlemail.com>2010-02-04 23:41:52 +0100
committerMatthias Bolte <matthias.bolte@googlemail.com>2010-02-09 01:04:54 +0100
commitf972dc2d5cfdfaf7a8bcf68d36bba44be789eb9c (patch)
treede94caf49824fd5d7918c0a167c15858b0e3802f /tools
parentRemove conn parameter from virXPath* functions (diff)
downloadlibvirt-f972dc2d5cfdfaf7a8bcf68d36bba44be789eb9c.tar.gz
libvirt-f972dc2d5cfdfaf7a8bcf68d36bba44be789eb9c.tar.bz2
libvirt-f972dc2d5cfdfaf7a8bcf68d36bba44be789eb9c.zip
Remove conn parameter from util functions
It was used for error reporting only.
Diffstat (limited to 'tools')
-rw-r--r--tools/virsh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/virsh.c b/tools/virsh.c
index 6fa4a4fa6..7db48d972 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -7172,7 +7172,7 @@ cmdCd(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
dir = vshCommandOptString(cmd, "dir", &found);
if (!found) {
uid_t uid = geteuid();
- dir = virGetUserDirectory(NULL, uid);
+ dir = virGetUserDirectory(uid);
}
if (!dir)
dir = "/";
@@ -8773,7 +8773,7 @@ vshReadlineInit(vshControl *ctl)
stifle_history(500);
/* Prepare to read/write history from/to the ~/.virsh/history file */
- userdir = virGetUserDirectory(NULL, getuid());
+ userdir = virGetUserDirectory(getuid());
if (userdir == NULL)
return -1;