From 2387495b562d5979ed3e985706fcc448049fe01a Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 20 Mar 2006 04:02:36 +0000 Subject: update usage --- src/cmd/sam/io.c | 4 +--- src/cmd/sam/sam.c | 4 ---- src/cmd/sam/sam.h | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) (limited to 'src') diff --git a/src/cmd/sam/io.c b/src/cmd/sam/io.c index 8b6f281f..95c2e0ce 100644 --- a/src/cmd/sam/io.c +++ b/src/cmd/sam/io.c @@ -226,7 +226,7 @@ connectto(char *machine, char **argv) // count args for(av = argv; *av; av++) ; - av = malloc(sizeof(char*)*((av-argv) + 10)); + av = malloc(sizeof(char*)*((av-argv) + 5)); if(av == nil){ dprint("out of memory\n"); exits("fork/exec"); @@ -234,8 +234,6 @@ connectto(char *machine, char **argv) ac = 0; av[ac++] = RX; av[ac++] = machine; - if(rxopt) - av[ac++] = rxopt; av[ac++] = rsamname; av[ac++] = "-R"; while(*argv) diff --git a/src/cmd/sam/sam.c b/src/cmd/sam/sam.c index 01893cbb..d17f235f 100644 --- a/src/cmd/sam/sam.c +++ b/src/cmd/sam/sam.c @@ -30,7 +30,6 @@ Disk *disk; long seq; char *winsize; -char *rxopt; Rune baddir[] = { '<', 'b', 'a', 'd', 'd', 'i', 'r', '>', '\n'}; @@ -57,9 +56,6 @@ main(int volatile argc, char **volatile argv) case 'R': Rflag++; break; - case 'O': - rxopt = EARGF(usage()); - break; case 't': samterm = EARGF(usage()); break; diff --git a/src/cmd/sam/sam.h b/src/cmd/sam/sam.h index bb88c33d..eefb4b34 100644 --- a/src/cmd/sam/sam.h +++ b/src/cmd/sam/sam.h @@ -348,7 +348,6 @@ extern char SH[]; extern char SHPATH[]; extern char RX[]; extern char RXPATH[]; -extern char *rxopt; /* * acme globals -- cgit v1.2.3