libventi: return value nits

This commit is contained in:
Russ Cox 2008-06-14 23:04:44 -04:00
parent 5f1eaee2ab
commit 1309689171
2 changed files with 2 additions and 2 deletions

View file

@ -888,7 +888,7 @@ memalloc(int n, int pos)
if(n < 0 || n > MaxFragSize) {
werrstr(EPacketSize);
return 0;
return nil;
}
if(n <= SmallMemSize) {
lock(&freelist.lk);

View file

@ -39,7 +39,7 @@ _vtsend(VtConn *z, Packet *p)
if(write(z->outfd, ioc.addr, ioc.len) < ioc.len){
vtlog(VtServerLog, "<font size=-1>%T %s:</font> sending packet %p: %r<br>\n", z->addr, p);
packetfree(p);
return 0;
return -1;
}
packetconsume(p, nil, ioc.len);
tot += ioc.len;