ia64/xen-unstable

changeset 9572:163c65c47d86

Remove some dead code from the consoled client.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Apr 03 17:48:39 2006 +0100 (2006-04-03)
parents 108a62015bf4
children 7df5921af7e4
files tools/console/client/main.c
line diff
     1.1 --- a/tools/console/client/main.c	Mon Apr 03 17:47:42 2006 +0100
     1.2 +++ b/tools/console/client/main.c	Mon Apr 03 17:48:39 2006 +0100
     1.3 @@ -36,7 +36,6 @@
     1.4  #include <errno.h>
     1.5  #include <pty.h>
     1.6  
     1.7 -#include "xenctrl.h"
     1.8  #include "xs.h"
     1.9  
    1.10  #define ESCAPE_CHARACTER 0x1d
    1.11 @@ -92,7 +91,7 @@ static void restore_term(int fd, struct 
    1.12  	tcsetattr(fd, TCSAFLUSH, old);
    1.13  }
    1.14  
    1.15 -static int console_loop(int xc_handle, domid_t domid, int fd)
    1.16 +static int console_loop(int fd)
    1.17  {
    1.18  	int ret;
    1.19  
    1.20 @@ -161,7 +160,6 @@ int main(int argc, char **argv)
    1.21  {
    1.22  	struct termios attr;
    1.23  	int domid;
    1.24 -	int xc_handle;
    1.25  	char *sopt = "h";
    1.26  	int ch;
    1.27  	int opt_ind=0;
    1.28 @@ -206,11 +204,6 @@ int main(int argc, char **argv)
    1.29  		err(errno, "Could not contact XenStore");
    1.30  	}
    1.31  
    1.32 -	xc_handle = xc_interface_open();
    1.33 -	if (xc_handle == -1) {
    1.34 -		err(errno, "xc_interface_open()");
    1.35 -	}
    1.36 -	
    1.37  	signal(SIGTERM, sighandler);
    1.38  
    1.39  	path = xs_get_domain_path(xs, domid);
    1.40 @@ -260,7 +253,7 @@ int main(int argc, char **argv)
    1.41  	free(path);
    1.42  
    1.43  	init_term(STDIN_FILENO, &attr);
    1.44 -	console_loop(xc_handle, domid, spty);
    1.45 +	console_loop(spty);
    1.46  	restore_term(STDIN_FILENO, &attr);
    1.47  
    1.48  	return 0;