libventi: return value nits
This commit is contained in:
parent
5f1eaee2ab
commit
1309689171
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue