diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/libventi/packet.c | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2 plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip |
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/libventi/packet.c')
-rw-r--r-- | src/libventi/packet.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libventi/packet.c b/src/libventi/packet.c index d3198939..aa5b2a0e 100644 --- a/src/libventi/packet.c +++ b/src/libventi/packet.c @@ -9,14 +9,14 @@ typedef struct Frag Frag; 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 @@ struct Mem enum { FragLocalFree, FragLocalAlloc, - FragGlobal, + FragGlobal }; struct Frag @@ -126,7 +126,7 @@ packetalloc(void) 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 @@ packetfree(Packet *p) { 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; |