aboutsummaryrefslogtreecommitdiff
path: root/src/libventi
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-14 18:21:12 +0000
committerrsc <devnull@localhost>2005-01-14 18:21:12 +0000
commit0dc9950215f761f20a7c45e20ac14ce5e0a4ae10 (patch)
tree1b9976f546e4624416d56835bb33b7f8d7da33b1 /src/libventi
parent2b3b1e8984849541761d0272ba1ad376f5f5a82b (diff)
downloadplan9port-0dc9950215f761f20a7c45e20ac14ce5e0a4ae10.tar.gz
plan9port-0dc9950215f761f20a7c45e20ac14ce5e0a4ae10.tar.bz2
plan9port-0dc9950215f761f20a7c45e20ac14ce5e0a4ae10.zip
stupid sun
Diffstat (limited to 'src/libventi')
-rw-r--r--src/libventi/client.c2
-rw-r--r--src/libventi/file.c5
-rw-r--r--src/libventi/packet.c1
3 files changed, 2 insertions, 6 deletions
diff --git a/src/libventi/client.c b/src/libventi/client.c
index 772b430f..b06e0fbe 100644
--- 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
index ac81c2a3..6c151859 100644
--- 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
index 98f697cb..3ef1b1df 100644
--- 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 */
}