aboutsummaryrefslogtreecommitdiff
path: root/src/uml
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2011-09-16 14:05:58 +0200
committerDaniel Veillard <veillard@redhat.com>2011-09-16 20:49:04 +0800
commit79cf07af7c723007675540508267b828eb8d65d9 (patch)
tree1f705549b7affd3162029fe3bb863a9137e4d319 /src/uml
parentdoc: Add statment about permissions needed to do a core dump (diff)
downloadlibvirt-79cf07af7c723007675540508267b828eb8d65d9.tar.gz
libvirt-79cf07af7c723007675540508267b828eb8d65d9.tar.bz2
libvirt-79cf07af7c723007675540508267b828eb8d65d9.zip
Avoid using "devname" as an identifier.
/usr/lib/stdlib.h in Mac OS X and probably also in BSD's exports this symbol :(
Diffstat (limited to 'src/uml')
-rw-r--r--src/uml/uml_driver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/uml/uml_driver.c b/src/uml/uml_driver.c
index 32f09d2e9..2b7219a54 100644
--- a/src/uml/uml_driver.c
+++ b/src/uml/uml_driver.c
@@ -2235,7 +2235,7 @@ cleanup:
static int
umlDomainOpenConsole(virDomainPtr dom,
- const char *devname,
+ const char *dev_name,
virStreamPtr st,
unsigned int flags)
{
@@ -2262,7 +2262,7 @@ umlDomainOpenConsole(virDomainPtr dom,
goto cleanup;
}
- if (devname) {
+ if (dev_name) {
/* XXX support device aliases in future */
umlReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("Named device aliases are not supported"));
@@ -2276,13 +2276,13 @@ umlDomainOpenConsole(virDomainPtr dom,
if (!chr) {
umlReportError(VIR_ERR_INTERNAL_ERROR,
- _("cannot find character device %s"), devname);
+ _("cannot find character device %s"), dev_name);
goto cleanup;
}
if (chr->source.type != VIR_DOMAIN_CHR_TYPE_PTY) {
umlReportError(VIR_ERR_INTERNAL_ERROR,
- _("character device %s is not using a PTY"), devname);
+ _("character device %s is not using a PTY"), dev_name);
goto cleanup;
}