From 7975d318527a545b5e46a6868d2a5d92447509d9 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Mon, 11 May 2015 19:34:00 +0200 Subject: [PATCH] feature #3765: Update Xen driver to use NebulaUtil functions --- src/vmm/XenDriver.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/vmm/XenDriver.cc b/src/vmm/XenDriver.cc index 1d51cfc1a6..e548a691ab 100644 --- a/src/vmm/XenDriver.cc +++ b/src/vmm/XenDriver.cc @@ -505,7 +505,9 @@ int XenDriver::deployment_description( passwd = graphics->vector_value("PASSWD"); keymap = graphics->vector_value("KEYMAP"); - if ( type == "vnc" || type == "VNC" ) + one_util::toupper(type); + + if ( type == "VNC" ) { if ( !is_hvm ) { @@ -581,7 +583,7 @@ int XenDriver::deployment_description( file <<"']" << endl; } } - else if ( is_hvm && (type == "spice" || type == "SPICE") ) + else if ( is_hvm && type == "SPICE" ) { file << "spice = '1'" << endl; @@ -744,7 +746,7 @@ int XenDriver::deployment_description( type = raw->vector_value("TYPE"); - transform(type.begin(),type.end(),type.begin(),(int(*)(int))toupper); + one_util::toupper(type); if ( type == "XEN" ) {