diff options
author | rsc <devnull@localhost> | 2005-01-27 06:10:35 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-27 06:10:35 +0000 |
commit | 17ab31aac6639e210613691669163b0c2874d1ce (patch) | |
tree | d64fa43d93a72fe850f6cf936eb1ea2d64b4905f /src/cmd/sam/io.c | |
parent | 4ac5f249ad40f3452fc87dc9a3f4b9d9546c83b0 (diff) | |
download | plan9port-17ab31aac6639e210613691669163b0c2874d1ce.tar.gz plan9port-17ab31aac6639e210613691669163b0c2874d1ce.tar.bz2 plan9port-17ab31aac6639e210613691669163b0c2874d1ce.zip |
add autoindent (-a) and chording.
clean up argument parsing.
Diffstat (limited to 'src/cmd/sam/io.c')
-rw-r--r-- | src/cmd/sam/io.c | 8 |
1 files changed, 3 insertions, 5 deletions
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); } |