[xen master] xenconsole: fix 32bit compilation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] xenconsole: fix 32bit compilation

patchbot
commit 72b0c19a7040ab8446f16578b094fec8703f8095
Author:     Wei Liu <[hidden email]>
AuthorDate: Wed Oct 4 15:26:04 2017 +0100
Commit:     Wei Liu <[hidden email]>
CommitDate: Wed Oct 4 16:58:57 2017 +0100

    xenconsole: fix 32bit compilation
   
    Signed-off-by: Wei Liu <[hidden email]>
---
 tools/console/daemon/io.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c
index 2615b50..afe162e 100644
--- a/tools/console/daemon/io.c
+++ b/tools/console/daemon/io.c
@@ -1047,7 +1047,7 @@ static void handle_tty_write(struct console *con)
 
 static void console_evtchn_unmask(struct console *con, void *data)
 {
- long long now = (long long)data;
+ long long now = *(long long *)data;
 
  if (!console_enabled(con))
  return;
@@ -1343,7 +1343,7 @@ void handle_io(void)
    domains with new allowance */
  for (d = dom_head; d; d = d->next) {
 
- console_iter_void_arg2(d, console_evtchn_unmask, (void *)now);
+ console_iter_void_arg2(d, console_evtchn_unmask, (void *)&now);
 
  console_iter_void_arg2(d, maybe_add_console_evtchn_fd,
        (void *)&next_timeout);
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog