# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1209736899 25200
# Node ID 61d0f0e9f05e31ceb06476c92570e325b38d8a5a
# Parent 122027a2c63e875939492ec0c7f39299ca6fed25
Fix compile error in VSMS
I know Kaitlin had submitted a patch for this against SDC, but I must
have forgotten to apply it.
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 122027a2c63e -r 61d0f0e9f05e src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c Thu May 01 11:48:17 2008 -0700
+++ b/src/Virt_VirtualSystemManagementService.c Fri May 02 07:01:39 2008 -0700
@@ -320,6 +320,7 @@ static const char *_net_rand_mac(void)
int ret;
unsigned int s;
char *mac = NULL;
+ const char *_mac = NULL;
CMPIString *str = NULL;
CMPIStatus status;
@@ -346,11 +347,11 @@ static const char *_net_rand_mac(void)
free(mac);
if (str != NULL)
- mac = CMGetCharPtr(str);
+ _mac = CMGetCharPtr(str);
else
- mac = NULL;
-
- return mac;
+ _mac = NULL;
+
+ return _mac;
}
static const char *net_rasd_to_vdev(CMPIInstance *inst,