diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-04-03 17:48:39 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-04-03 17:48:39 +0100 |
commit | 6daae768eb961c0d1acaf0d809cfa20f17cce59e (patch) | |
tree | ec5fa529f8cb8943294ef0e8c656395cfb0fb054 /tools/console | |
parent | 4b233c874995b8094af311962df7a1fc999595e7 (diff) | |
download | xen-6daae768eb961c0d1acaf0d809cfa20f17cce59e.tar.gz xen-6daae768eb961c0d1acaf0d809cfa20f17cce59e.tar.bz2 xen-6daae768eb961c0d1acaf0d809cfa20f17cce59e.zip |
Remove some dead code from the consoled client.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'tools/console')
-rw-r--r-- | tools/console/client/main.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tools/console/client/main.c b/tools/console/client/main.c index aba35ec2c6..a43ee26463 100644 --- a/tools/console/client/main.c +++ b/tools/console/client/main.c @@ -36,7 +36,6 @@ #include <errno.h> #include <pty.h> -#include "xenctrl.h" #include "xs.h" #define ESCAPE_CHARACTER 0x1d @@ -92,7 +91,7 @@ static void restore_term(int fd, struct termios *old) tcsetattr(fd, TCSAFLUSH, old); } -static int console_loop(int xc_handle, domid_t domid, int fd) +static int console_loop(int fd) { int ret; @@ -161,7 +160,6 @@ int main(int argc, char **argv) { struct termios attr; int domid; - int xc_handle; char *sopt = "h"; int ch; int opt_ind=0; @@ -206,11 +204,6 @@ int main(int argc, char **argv) err(errno, "Could not contact XenStore"); } - xc_handle = xc_interface_open(); - if (xc_handle == -1) { - err(errno, "xc_interface_open()"); - } - signal(SIGTERM, sighandler); path = xs_get_domain_path(xs, domid); @@ -260,7 +253,7 @@ int main(int argc, char **argv) free(path); init_term(STDIN_FILENO, &attr); - console_loop(xc_handle, domid, spty); + console_loop(spty); restore_term(STDIN_FILENO, &attr); return 0; |