From 17ab31aac6639e210613691669163b0c2874d1ce Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 27 Jan 2005 06:10:35 +0000 Subject: add autoindent (-a) and chording. clean up argument parsing. --- src/cmd/sam/io.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/cmd/sam/io.c') diff --git a/src/cmd/sam/io.c b/src/cmd/sam/io.c index cdea842c..95c2e0ce 100644 --- a/src/cmd/sam/io.c +++ b/src/cmd/sam/io.c @@ -176,7 +176,7 @@ int remotefd0 = 0; int remotefd1 = 1; void -bootterm(char *machine, char **argv, char **end) +bootterm(char *machine, char **argv) { int ph2t[2], pt2h[2]; @@ -186,7 +186,6 @@ bootterm(char *machine, char **argv, char **end) close(remotefd0); close(remotefd1); argv[0] = "samterm"; - *end = 0; execvp(samterm, argv); fprint(2, "can't exec %s: %r\n", samterm); _exits("damn"); @@ -202,7 +201,6 @@ bootterm(char *machine, char **argv, char **end) close(pt2h[0]); close(pt2h[1]); argv[0] = "samterm"; - *end = 0; execvp(samterm, argv); fprint(2, "can't exec: "); perror(samterm); @@ -269,12 +267,12 @@ connectto(char *machine, char **argv) } void -startup(char *machine, int Rflag, char **argv, char **end, char **files) +startup(char *machine, int Rflag, char **argv, char **files) { if(machine) connectto(machine, files); if(!Rflag) - bootterm(machine, argv, end); + bootterm(machine, argv); downloaded = 1; outTs(Hversion, VERSION); } -- cgit v1.2.3