Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/xen-tools/files: xen-tools-3.3.0-warning-fix.patch
Date: Sun, 26 Apr 2009 12:52:28
Message-Id: E1Ly3qL-00049y-RC@stork.gentoo.org
1 patrick 09/04/26 12:52:25
2
3 Added: xen-tools-3.3.0-warning-fix.patch
4 Log:
5 Fix gcc 4.3 compile failure, part of #259670
6 (Portage version: 2.2_rc31/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 app-emulation/xen-tools/files/xen-tools-3.3.0-warning-fix.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen-tools/files/xen-tools-3.3.0-warning-fix.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen-tools/files/xen-tools-3.3.0-warning-fix.patch?rev=1.1&content-type=text/plain
13
14 Index: xen-tools-3.3.0-warning-fix.patch
15 ===================================================================
16 diff -Nru a/tools/libxc/xc_dom_x86.c b/tools/libxc/xc_dom_x86.c
17 --- a/tools/libxc/xc_dom_x86.c 2008-08-22 17:49:08.000000000 +0800
18 +++ b/tools/libxc/xc_dom_x86.c 2009-02-19 19:08:23.000000000 +0800
19 @@ -418,7 +418,7 @@
20 xc_dom_printf("%s: called\n", __FUNCTION__);
21
22 memset(start_info, 0, sizeof(*start_info));
23 - snprintf(start_info->magic, sizeof(start_info->magic), dom->guest_type);
24 + snprintf(start_info->magic, sizeof(start_info->magic), "%s", dom->guest_type);
25 start_info->nr_pages = dom->total_pages;
26 start_info->shared_info = shinfo << PAGE_SHIFT_X86;
27 start_info->pt_base = dom->pgtables_seg.vstart;
28 @@ -457,7 +457,7 @@
29 xc_dom_printf("%s: called\n", __FUNCTION__);
30
31 memset(start_info, 0, sizeof(*start_info));
32 - snprintf(start_info->magic, sizeof(start_info->magic), dom->guest_type);
33 + snprintf(start_info->magic, sizeof(start_info->magic), "%s", dom->guest_type);
34 start_info->nr_pages = dom->total_pages;
35 start_info->shared_info = shinfo << PAGE_SHIFT_X86;
36 start_info->pt_base = dom->pgtables_seg.vstart;
37 diff -Nru a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c
38 --- a/tools/xenstat/xentop/xentop.c 2008-08-22 17:49:08.000000000 +0800
39 +++ b/tools/xenstat/xentop/xentop.c 2009-02-19 19:11:46.000000000 +0800
40 @@ -254,7 +254,7 @@
41 {
42 if(cwin != NULL && !isendwin())
43 endwin();
44 - fprintf(stderr, str);
45 + fprintf(stderr, "%s", str);
46 exit(1);
47 }