aboutsummaryrefslogtreecommitdiff
path: root/src/libventi
diff options
context:
space:
mode:
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 */
}