diff options
author | rsc <devnull@localhost> | 2005-07-13 21:34:11 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-07-13 21:34:11 +0000 |
commit | a8ec4910fd7d67df09ca79179dff8a344cc13cf2 (patch) | |
tree | 9dbb20f00bd6ec3a3fee026473f43e85f49f5c77 /src/cmd | |
parent | f462256db27f827590a5867e046d0bbbb8eb368a (diff) | |
download | plan9port-a8ec4910fd7d67df09ca79179dff8a344cc13cf2.tar.gz plan9port-a8ec4910fd7d67df09ca79179dff8a344cc13cf2.tar.bz2 plan9port-a8ec4910fd7d67df09ca79179dff8a344cc13cf2.zip |
apple
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/acidtypes/stabs.c | 1 | ||||
-rw-r--r-- | src/cmd/acme/edit.c | 1 | ||||
-rw-r--r-- | src/cmd/acme/look.c | 2 | ||||
-rw-r--r-- | src/cmd/auxstats/Darwin.c | 3 | ||||
-rw-r--r-- | src/cmd/ed.c | 2 | ||||
-rw-r--r-- | src/cmd/hist.c | 2 | ||||
-rw-r--r-- | src/cmd/pic/pltroff.c | 5 | ||||
-rw-r--r-- | src/cmd/postscript/tr2post/Bgetfield.c | 2 |
8 files changed, 10 insertions, 8 deletions
diff --git a/src/cmd/acidtypes/stabs.c b/src/cmd/acidtypes/stabs.c index bd6e7188..51d71c4a 100644 --- a/src/cmd/acidtypes/stabs.c +++ b/src/cmd/acidtypes/stabs.c @@ -146,6 +146,7 @@ parseinfo(char *desc, char **pp) Type *t; char *attr; + n1 = n2 = 0; parsenum(desc, &n1, &n2, &desc); t = typebynum(n1, n2); if(*desc != '='){ diff --git a/src/cmd/acme/edit.c b/src/cmd/acme/edit.c index ccc7f585..7bccd3ab 100644 --- a/src/cmd/acme/edit.c +++ b/src/cmd/acme/edit.c @@ -605,6 +605,7 @@ simpleaddr(void) Addr addr; Addr *ap, *nap; + addr.num = 0; addr.next = 0; addr.u.left = 0; switch(cmdskipbl()){ diff --git a/src/cmd/acme/look.c b/src/cmd/acme/look.c index 000b3404..c22213f2 100644 --- a/src/cmd/acme/look.c +++ b/src/cmd/acme/look.c @@ -696,6 +696,8 @@ openfile(Text *t, Expand *e) Rune *rp; uint dummy; + r.q0 = 0; + r.q1 = 0; if(e->nname == 0){ w = t->w; if(w == nil) diff --git a/src/cmd/auxstats/Darwin.c b/src/cmd/auxstats/Darwin.c index da6c2a22..46ba5cbf 100644 --- a/src/cmd/auxstats/Darwin.c +++ b/src/cmd/auxstats/Darwin.c @@ -83,6 +83,7 @@ kread(ulong addr, char *buf, int size) void xnet(int first) { +#if 0 ulong out, in, outb, inb, err; static ulong ifnetaddr; ulong addr; @@ -123,6 +124,8 @@ xnet(int first) Bprint(&bout, "ethererr %lud\n", err); Bprint(&bout, "ether %lud\n", in+out); Bprint(&bout, "etherb %lud\n", inb+outb); +#endif + USED(first); } diff --git a/src/cmd/ed.c b/src/cmd/ed.c index f44acb06..60ba83ca 100644 --- a/src/cmd/ed.c +++ b/src/cmd/ed.c @@ -929,7 +929,7 @@ callunix(void) *p = 0; pid = fork(); if(pid == 0) { - execlp("rc", "rc", "-c", buf, 0); + execlp("rc", "rc", "-c", buf, (char*)0); sysfatal("exec failed: %r"); exits("execl failed"); } diff --git a/src/cmd/hist.c b/src/cmd/hist.c index 6fa0da9f..46fd3f8a 100644 --- a/src/cmd/hist.c +++ b/src/cmd/hist.c @@ -144,7 +144,7 @@ ysearch(char *file) print("diff %s %s\n", pair[toggle^1], pair[toggle]); switch(rfork(RFFDG|RFPROC)){ case 0: - execlp("diff", "diff", diffb ? "-cb" : "-c", pair[toggle], pair[toggle ^ 1], 0); + execlp("diff", "diff", diffb ? "-cb" : "-c", pair[toggle], pair[toggle ^ 1], (char*)0); fprint(2, "can't exec diff: %r\n"); exits(0); case -1: diff --git a/src/cmd/pic/pltroff.c b/src/cmd/pic/pltroff.c index d3e3151b..8f3d5ac4 100644 --- a/src/cmd/pic/pltroff.c +++ b/src/cmd/pic/pltroff.c @@ -144,11 +144,6 @@ void vgoto(double n) vpos = n; } -double fabs(double x) -{ - return x < 0 ? -x : x; -} - void hvflush(void) /* get to proper point for output */ { if (fabs(hpos-htrue) >= 0.0005) { diff --git a/src/cmd/postscript/tr2post/Bgetfield.c b/src/cmd/postscript/tr2post/Bgetfield.c index fc0dfc13..d976b40a 100644 --- a/src/cmd/postscript/tr2post/Bgetfield.c +++ b/src/cmd/postscript/tr2post/Bgetfield.c @@ -108,7 +108,7 @@ Bgetfield(Biobuf *bp, int type, void *thing, int size) { while (!bailout && (r = Bgetrune(bp))>=0) { switch (sindex++) { case 0: - if (*c == '0') { + if (r == '0') { base = 8; continue; } |