Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
diff --git a/src/libventi/packet.c b/src/libventi/packet.c
index d319893..aa5b2a0 100644
--- a/src/libventi/packet.c
+++ b/src/libventi/packet.c
@@ -9,14 +9,14 @@
enum {
BigMemSize = MaxFragSize,
SmallMemSize = BigMemSize/8,
- NLocalFrag = 2,
+ NLocalFrag = 2
};
/* position to carve out of a Mem */
enum {
PFront,
PMiddle,
- PEnd,
+ PEnd
};
struct Mem
@@ -33,7 +33,7 @@
enum {
FragLocalFree,
FragLocalAlloc,
- FragGlobal,
+ FragGlobal
};
struct Frag
@@ -126,7 +126,7 @@
p->next = nil;
p->pc = getcallerpc((char*)&p+8); /* might not work, but fine */
-//if(0)fprint(2, "packetalloc %p from %08lux %08lux %08lux\n", p, *((uint*)&p+2), *((uint*)&p+3), *((uint*)&p+4));
+/*if(0)fprint(2, "packetalloc %p from %08lux %08lux %08lux\n", p, *((uint*)&p+2), *((uint*)&p+3), *((uint*)&p+4)); */
NOTFREE(p);
return p;
@@ -137,7 +137,7 @@
{
Frag *f, *ff;
-//if(1)fprint(2, "packetfree %p from %08lux\n", p, getcallerpc(&p));
+/*if(1)fprint(2, "packetfree %p from %08lux\n", p, getcallerpc(&p)); */
if(p == nil)
return;