xentop: build fix
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 errorsxentop.c: In function 'do_summary':
xentop.c:761: warning: passing argument 1 of 'localtime' from incompatible pointer type
Signed-off-by Christoph Egger <[email protected]>
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
@@ -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);"xentop - %s Xen %s\n" , time_str, ver_str);
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel