From 3c84c725ef4bd925be08518cce59161edf905ca6 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 29 Dec 2005 23:07:19 +0000 Subject: [PATCH] warnings --- README | 1 + cpu.c | 20 +++++++++----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/README b/README index f72e310..816825b 100644 --- a/README +++ b/README @@ -23,6 +23,7 @@ SOURCE ------ Use CVS: cvs -d :pserver:anoncvs@cvs.pdos.csail.mit.edu:/cvs co drawterm On the web at http://cvs.pdos.csail.mit.edu/cvs/drawterm +In the Plan 9 distribution: /sys/src/cmd/unix/drawterm TO DO: ------ diff --git a/cpu.c b/cpu.c index 79734d6..668770d 100644 --- a/cpu.c +++ b/cpu.c @@ -99,7 +99,7 @@ mountfactotum(void) void cpumain(int argc, char **argv) { - char dat[MaxStr], buf[MaxStr], cmd[MaxStr], *err, *secstoreserver, *s; + char dat[MaxStr], buf[MaxStr], cmd[MaxStr], *err, *secstoreserver, *p, *s; int fd, ms, data; /* see if we should use a larger message size */ @@ -125,28 +125,26 @@ cpumain(int argc, char **argv) case 'a': authserver = EARGF(usage()); break; + case 'c': + system = EARGF(usage()); + break; + case 'd': + dbg++; + break; case 'e': ealgs = EARGF(usage()); if(*ealgs == 0 || strcmp(ealgs, "clear") == 0) ealgs = nil; break; - case 'd': - dbg++; - break; - case 'c': - system = EARGF(usage()); - break; -/* - case 'c': + case 'C': cflag++; cmd[0] = '!'; cmd[1] = '\0'; - while(p = ARGF()) { + while((p = ARGF()) != nil) { strcat(cmd, " "); strcat(cmd, p); } break; -*/ case 'k': keyspec = EARGF(usage()); break;