xentop: build fix for *bsd.
authorKeir Fraser <keir@xensource.com>
Tue, 23 Oct 2007 13:42:50 +0000 (14:42 +0100)
committerKeir Fraser <keir@xensource.com>
Tue, 23 Oct 2007 13:42:50 +0000 (14:42 +0100)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
tools/xenstat/xentop/xentop.c

index bc703ffae2b4180016b7b4843e123799bd2e0322..5e1f5ef8d1237f75d7c69b04b605770fb4f32928 100644 (file)
@@ -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);