mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
stupid sun
This commit is contained in:
parent
2b3b1e8984
commit
0dc9950215
7 changed files with 8 additions and 11 deletions
7
bin/9
7
bin/9
|
@ -1,11 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
export PLAN9=${PLAN9:-/usr/local/plan9}
|
||||
PLAN9=${PLAN9:-/usr/local/plan9}
|
||||
export PLAN9
|
||||
|
||||
case "$PATH" in
|
||||
$PLAN9/bin:*)
|
||||
;;
|
||||
*)
|
||||
export PATH=$PLAN9/bin:$PATH
|
||||
PATH=$PLAN9/bin:$PATH
|
||||
export PATH
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
@ -93,7 +93,6 @@ main(int argc, char *argv[])
|
|||
continue;
|
||||
}
|
||||
}
|
||||
exits(0);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -758,7 +758,6 @@ gety(void)
|
|||
if(p >= &linebuf[LBSIZE-2])
|
||||
error(Q);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -243,7 +243,7 @@ shuffle(void *arg)
|
|||
if(tbuf == nil)
|
||||
tbuf = emalloc(BLEN+1);
|
||||
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]);
|
||||
else
|
||||
fprint(dfd, "%d->%d %F\n", fd[0], fd[1], t);
|
||||
|
|
|
@ -136,7 +136,7 @@ vtwrite(VtConn *z, uchar score[VtScoreSize], uint type, uchar *buf, int n)
|
|||
{
|
||||
Packet *p;
|
||||
|
||||
p = packetforeign(buf, n, nil, nil);
|
||||
p = packetforeign(buf, n, 0, nil);
|
||||
return vtwritepacket(z, score, type, p);
|
||||
}
|
||||
|
||||
|
|
|
@ -16,10 +16,7 @@
|
|||
#include <libc.h>
|
||||
#include <venti.h>
|
||||
|
||||
enum
|
||||
{
|
||||
MaxBlock = (1UL<<31),
|
||||
};
|
||||
#define MaxBlock (1UL<<31)
|
||||
|
||||
static char EBadEntry[] = "bad VtEntry";
|
||||
static char ENotDir[] = "walk in non-directory";
|
||||
|
|
|
@ -752,7 +752,6 @@ packetcmp(Packet *pkt0, Packet *pkt1)
|
|||
n1 = FRAGSIZE(f1);
|
||||
}
|
||||
}
|
||||
return 0; /* for ken */
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue