From: "Christoph Egger" Subject: [PATCH][TOOLS] xentop: build fix Date: Tue, 23 Oct 2007 15:29:38 +0200 Message-ID: <200710231529.38365.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_CdfHHaqwbbL/pnQ" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_CdfHHaqwbbL/pnQ Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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= =20 pointer type Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_CdfHHaqwbbL/pnQ Content-Type: text/plain; charset=us-ascii; name=tools_xentop.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=tools_xentop.diff diff -r 118a21c66fd5 tools/xenstat/xentop/xentop.c --- a/tools/xenstat/xentop/xentop.c Mon Oct 22 21:06:11 2007 +0100 +++ b/tools/xenstat/xentop/xentop.c Tue Oct 23 16:57:24 2007 +0200 @@ -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); --Boundary-00=_CdfHHaqwbbL/pnQ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_CdfHHaqwbbL/pnQ--