aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_aoutils.c
diff options
context:
space:
mode:
authorChristoph Egger <Christoph.Egger@amd.com>2012-05-17 14:45:43 +0100
committerChristoph Egger <Christoph.Egger@amd.com>2012-05-17 14:45:43 +0100
commit8aae4f14458bf771a696d8d36b87069718447017 (patch)
tree985cb9976b1d3c96bf860081e08146f95e04782a /tools/libxl/libxl_aoutils.c
parent2ea83794a601c3598dec43443a18863c7ac1317f (diff)
downloadxen-8aae4f14458bf771a696d8d36b87069718447017.tar.gz
xen-8aae4f14458bf771a696d8d36b87069718447017.tar.bz2
xen-8aae4f14458bf771a696d8d36b87069718447017.zip
libxl: fix build on platforms where openpty's parameters are not const.
Such as NetBSD. Fixes 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 <Christoph.Egger@amd.com> Acked-by: Roger Pau Monne <roger.pau@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_aoutils.c')
-rw-r--r--tools/libxl/libxl_aoutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxl/libxl_aoutils.c b/tools/libxl/libxl_aoutils.c
index 91e34dea95..ee0df57ff5 100644
--- a/tools/libxl/libxl_aoutils.c
+++ b/tools/libxl/libxl_aoutils.c
@@ -230,8 +230,8 @@ static void openpty_exited(libxl__egc *egc, libxl__ev_child *child,
}
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.