plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 0dc9950215f761f20a7c45e20ac14ce5e0a4ae10
parent 2b3b1e8984849541761d0272ba1ad376f5f5a82b
Author: rsc <devnull@localhost>
Date:   Fri, 14 Jan 2005 18:21:12 +0000

stupid sun

Diffstat:
Mbin/9 | 7+++++--
Msrc/cmd/comm.c | 1-
Msrc/cmd/ed.c | 1-
Msrc/cmd/import.c | 2+-
Msrc/libventi/client.c | 2+-
Msrc/libventi/file.c | 5+----
Msrc/libventi/packet.c | 1-
7 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/bin/9 b/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 diff --git a/src/cmd/comm.c b/src/cmd/comm.c @@ -93,7 +93,6 @@ main(int argc, char *argv[]) continue; } } - exits(0); } int diff --git a/src/cmd/ed.c b/src/cmd/ed.c @@ -758,7 +758,6 @@ gety(void) if(p >= &linebuf[LBSIZE-2]) error(Q); } - return 0; } int diff --git a/src/cmd/import.c b/src/cmd/import.c @@ -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); diff --git a/src/libventi/client.c b/src/libventi/client.c @@ -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); } diff --git a/src/libventi/file.c b/src/libventi/file.c @@ -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"; diff --git a/src/libventi/packet.c b/src/libventi/packet.c @@ -752,7 +752,6 @@ packetcmp(Packet *pkt0, Packet *pkt1) n1 = FRAGSIZE(f1); } } - return 0; /* for ken */ }