From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH] libxl: build fix Date: Wed, 16 May 2012 17:51:42 +0200 Message-ID: <4FB3CD0E.5000708@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080300030603000302070601" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --------------080300030603000302070601 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit Fix this build error: libxl_aoutils.c: In function 'libxl__openptys': libxl_aoutils.c:281:13: error: passing argument 4 of 'openpty' discards qualifiers from pointer target type /usr/include/util.h:92:6: note: expected 'struct termios *' but argument is of type 'const struct termios *' libxl_aoutils.c:281:13: error: passing argument 5 of 'openpty' discards qualifiers from pointer target type /usr/include/util.h:92:6: note: expected 'struct winsize *' but argument is of type 'const struct winsize *' Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --------------080300030603000302070601 Content-Type: text/plain; charset="us-ascii"; name="xen_libxl.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_libxl.diff" Content-Description: xen_libxl.diff diff -r 1463985435ba tools/libxl/libxl_aoutils.c --- a/tools/libxl/libxl_aoutils.c Wed May 16 17:17:17 2012 +0200 +++ b/tools/libxl/libxl_aoutils.c Wed May 16 17:47:51 2012 +0200 @@ -230,8 +230,8 @@ static void openpty_exited(libxl__egc *e } int libxl__openptys(libxl__openpty_state *op, - const struct termios *termp, - const struct winsize *winp) { + struct termios *termp, + struct winsize *winp) { /* * This is completely crazy. openpty calls grantpt which the spec * says may fork, and may not be called with a SIGCHLD handler. diff -r 1463985435ba tools/libxl/libxl_internal.h --- a/tools/libxl/libxl_internal.h Wed May 16 17:17:17 2012 +0200 +++ b/tools/libxl/libxl_internal.h Wed May 16 17:47:51 2012 +0200 @@ -1739,8 +1739,8 @@ struct libxl__openpty_result { }; int libxl__openptys(libxl__openpty_state *op, - const struct termios *termp, - const struct winsize *winp); + struct termios *termp, + struct winsize *winp); /*----- bootloader -----*/ --------------080300030603000302070601 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.xen.org http://lists.xen.org/xen-devel --------------080300030603000302070601--