Skip to contentSkip to conversation

xentop: build fix

PATCH New Christoph Egger 1 participant 1 message Oct 23, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xentop: build fix

Hi!

Attached patch fixes below build error on *BSD. Checked and ok'd by SUN (John Levon) that this patch is also fine with Solaris.

cc1: warnings being treated as errors
xentop.c: In function 'do_summary':
xentop.c:761: warning: passing argument 1 of 'localtime' from incompatible pointer type

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
tools/xenstat/xentop/xentop.c +1 -1
diff -r 118a21c66fd5 tools/xenstat/xentop/xentop.c
@@ -758,7 +758,7 @@ void do_summary(void)
 
 	/* Print program name, current time, and number of domains */
 	strftime(time_str, TIME_STR_LEN, TIME_STR_FORMAT,
-	         localtime(&curtime.tv_sec));
+	         localtime((const time_t *)&curtime.tv_sec));
 	num_domains = xenstat_node_num_domains(cur_node);
 	ver_str = xenstat_node_xen_version(cur_node);
 	print("xentop - %s   Xen %s\n", time_str, ver_str);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel