stupid sun

This commit is contained in:
rsc 2005-01-14 18:21:12 +00:00
parent 2b3b1e8984
commit 0dc9950215
7 changed files with 8 additions and 11 deletions

7
bin/9
View file

@ -1,11 +1,14 @@
#!/bin/sh #!/bin/sh
export PLAN9=${PLAN9:-/usr/local/plan9} PLAN9=${PLAN9:-/usr/local/plan9}
export PLAN9
case "$PATH" in case "$PATH" in
$PLAN9/bin:*) $PLAN9/bin:*)
;; ;;
*) *)
export PATH=$PLAN9/bin:$PATH PATH=$PLAN9/bin:$PATH
export PATH
;; ;;
esac esac

View file

@ -93,7 +93,6 @@ main(int argc, char *argv[])
continue; continue;
} }
} }
exits(0);
} }
int int

View file

@ -758,7 +758,6 @@ gety(void)
if(p >= &linebuf[LBSIZE-2]) if(p >= &linebuf[LBSIZE-2])
error(Q); error(Q);
} }
return 0;
} }
int int

View file

@ -243,7 +243,7 @@ shuffle(void *arg)
if(tbuf == nil) if(tbuf == nil)
tbuf = emalloc(BLEN+1); tbuf = emalloc(BLEN+1);
memmove(tbuf, buf, n); // because convM2S is destructive memmove(tbuf, buf, n); // because convM2S is destructive
if(convM2S(tbuf, n, t) != n) if(convM2S((uchar*)tbuf, n, t) != n)
fprint(dfd, "%d->%d convert error in convM2S", fd[0], fd[1]); fprint(dfd, "%d->%d convert error in convM2S", fd[0], fd[1]);
else else
fprint(dfd, "%d->%d %F\n", fd[0], fd[1], t); fprint(dfd, "%d->%d %F\n", fd[0], fd[1], t);

View file

@ -136,7 +136,7 @@ vtwrite(VtConn *z, uchar score[VtScoreSize], uint type, uchar *buf, int n)
{ {
Packet *p; Packet *p;
p = packetforeign(buf, n, nil, nil); p = packetforeign(buf, n, 0, nil);
return vtwritepacket(z, score, type, p); return vtwritepacket(z, score, type, p);
} }

View file

@ -16,10 +16,7 @@
#include <libc.h> #include <libc.h>
#include <venti.h> #include <venti.h>
enum #define MaxBlock (1UL<<31)
{
MaxBlock = (1UL<<31),
};
static char EBadEntry[] = "bad VtEntry"; static char EBadEntry[] = "bad VtEntry";
static char ENotDir[] = "walk in non-directory"; static char ENotDir[] = "walk in non-directory";

View file

@ -752,7 +752,6 @@ packetcmp(Packet *pkt0, Packet *pkt1)
n1 = FRAGSIZE(f1); n1 = FRAGSIZE(f1);
} }
} }
return 0; /* for ken */
} }