summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/console.c2
-rw-r--r--tools/virsh-domain-monitor.c2
-rw-r--r--tools/virsh-domain.c6
-rw-r--r--tools/virsh-edit.c2
-rw-r--r--tools/virsh-host.c4
-rw-r--r--tools/virsh-interface.c2
-rw-r--r--tools/virsh-nodedev.c2
-rw-r--r--tools/virsh-pool.c2
-rw-r--r--tools/virsh-volume.c2
-rw-r--r--tools/virsh.c4
10 files changed, 14 insertions, 14 deletions
diff --git a/tools/console.c b/tools/console.c
index 8b377dd01f..40de8eb2df 100644
--- a/tools/console.c
+++ b/tools/console.c
@@ -83,7 +83,7 @@ static void do_signal(int sig ATTRIBUTE_UNUSED) {
# ifndef HAVE_CFMAKERAW
static void
-cfmakeraw (struct termios *attr)
+cfmakeraw(struct termios *attr)
{
attr->c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP
| INLCR | IGNCR | ICRNL | IXON);
diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-domain-monitor.c
index b264f15351..4590803205 100644
--- a/tools/virsh-domain-monitor.c
+++ b/tools/virsh-domain-monitor.c
@@ -1132,7 +1132,7 @@ cmdDominfo(vshControl *ctl, const vshCmd *cmd)
/* Check and display whether the domain autostarts or not */
if (!virDomainGetAutostart(dom, &autostart)) {
vshPrint(ctl, "%-15s %s\n", _("Autostart:"),
- autostart ? _("enable") : _("disable") );
+ autostart ? _("enable") : _("disable"));
}
has_managed_save = virDomainHasManagedSaveImage(dom, 0);
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 255669f5df..393b67b56b 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -2079,7 +2079,7 @@ hit:
goto cleanup;
}
- if (xmlNodeDump(xml_buf, xml, obj->nodesetval->nodeTab[i], 0, 0) < 0 ) {
+ if (xmlNodeDump(xml_buf, xml, obj->nodesetval->nodeTab[i], 0, 0) < 0) {
vshError(ctl, _("Failed to create XML"));
goto cleanup;
}
@@ -2965,8 +2965,8 @@ out_sig:
ignore_value(safewrite(data->writefd, &ret, sizeof(ret)));
}
-typedef void (*jobWatchTimeoutFunc) (vshControl *ctl, virDomainPtr dom,
- void *opaque);
+typedef void (*jobWatchTimeoutFunc)(vshControl *ctl, virDomainPtr dom,
+ void *opaque);
static bool
vshWatchJob(vshControl *ctl,
diff --git a/tools/virsh-edit.c b/tools/virsh-edit.c
index 61008a90a7..9d612a3e3b 100644
--- a/tools/virsh-edit.c
+++ b/tools/virsh-edit.c
@@ -147,7 +147,7 @@ edit_cleanup:
VIR_FREE(doc_edited);
VIR_FREE(doc_reread);
if (tmp) {
- unlink (tmp);
+ unlink(tmp);
VIR_FREE(tmp);
}
diff --git a/tools/virsh-host.c b/tools/virsh-host.c
index 2ea24ac1a2..5e6842a5bf 100644
--- a/tools/virsh-host.c
+++ b/tools/virsh-host.c
@@ -148,7 +148,7 @@ cmdFreecell(vshControl *ctl, const vshCmd *cmd)
xmlDocPtr xml = NULL;
xmlXPathContextPtr ctxt = NULL;
- if ( (cell_given = vshCommandOptInt(cmd, "cellno", &cell)) < 0) {
+ if ((cell_given = vshCommandOptInt(cmd, "cellno", &cell)) < 0) {
vshError(ctl, "%s", _("cell number has to be a number"));
goto cleanup;
}
@@ -808,7 +808,7 @@ cmdHostname(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
return false;
}
- vshPrint (ctl, "%s\n", hostname);
+ vshPrint(ctl, "%s\n", hostname);
VIR_FREE(hostname);
return true;
diff --git a/tools/virsh-interface.c b/tools/virsh-interface.c
index c27b6bcabc..9ceb122f9c 100644
--- a/tools/virsh-interface.c
+++ b/tools/virsh-interface.c
@@ -774,7 +774,7 @@ cmdInterfaceBridge(vshControl *ctl, const vshCmd *cmd)
/* Set stp and delay attributes in <bridge> according to the
* commandline options.
*/
- if (!xmlSetProp(br_node, BAD_CAST "stp", BAD_CAST (stp ? "on" : "off"))) {
+ if (!xmlSetProp(br_node, BAD_CAST "stp", BAD_CAST(stp ? "on" : "off"))) {
vshError(ctl, "%s", _("Failed to set stp attribute in xml document"));
goto cleanup;
}
diff --git a/tools/virsh-nodedev.c b/tools/virsh-nodedev.c
index daf51d298e..8cf96bed05 100644
--- a/tools/virsh-nodedev.c
+++ b/tools/virsh-nodedev.c
@@ -365,7 +365,7 @@ cmdNodeListDevices(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
return false;
}
- switch(cap_type) {
+ switch (cap_type) {
case VIR_NODE_DEV_CAP_SYSTEM:
flags |= VIR_CONNECT_LIST_NODE_DEVICES_CAP_SYSTEM;
break;
diff --git a/tools/virsh-pool.c b/tools/virsh-pool.c
index 22df323aa4..c08cce654a 100644
--- a/tools/virsh-pool.c
+++ b/tools/virsh-pool.c
@@ -863,7 +863,7 @@ cmdPoolList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
return false;
}
- switch(poolType) {
+ switch (poolType) {
case VIR_STORAGE_POOL_DIR:
flags |= VIR_CONNECT_LIST_STORAGE_POOLS_DIR;
break;
diff --git a/tools/virsh-volume.c b/tools/virsh-volume.c
index 029758c3d8..f219de98b2 100644
--- a/tools/virsh-volume.c
+++ b/tools/virsh-volume.c
@@ -813,7 +813,7 @@ cmdVolInfo(vshControl *ctl, const vshCmd *cmd)
if (virStorageVolGetInfo(vol, &info) == 0) {
double val;
const char *unit;
- switch(info.type) {
+ switch (info.type) {
case VIR_STORAGE_VOL_FILE:
vshPrint(ctl, "%-15s %s\n", _("Type:"), _("file"));
break;
diff --git a/tools/virsh.c b/tools/virsh.c
index 7bb7781af6..a5585e1012 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -559,7 +559,7 @@ vshEditWriteToTempFile(vshControl *ctl, const char *doc)
int fd;
char ebuf[1024];
- tmpdir = getenv ("TMPDIR");
+ tmpdir = getenv("TMPDIR");
if (!tmpdir) tmpdir = "/tmp";
if (virAsprintf(&ret, "%s/virshXXXXXX.xml", tmpdir) < 0) {
vshError(ctl, "%s", _("out of memory"));
@@ -1959,7 +1959,7 @@ vshGetTypedParamValue(vshControl *ctl, virTypedParameterPtr item)
int ret = 0;
char *str = NULL;
- switch(item->type) {
+ switch (item->type) {
case VIR_TYPED_PARAM_INT:
ret = virAsprintf(&str, "%d", item->value.i);
break;