diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-12-12 19:28:21 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-12-12 19:28:21 +0100 |
commit | f32ef135d4bce251f72275d30cfcd86cb188b8c9 (patch) | |
tree | 985c8921099a0697b892c85bcfd1521bc40d82d6 | |
parent | 3028437f8bbcbea7ec3007ed3fb7aed2a09763c3 (diff) |
devbridge: fix
-rw-r--r-- | sys/src/9/port/devbridge.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/src/9/port/devbridge.c b/sys/src/9/port/devbridge.c index 6468122f9..32971fc95 100644 --- a/sys/src/9/port/devbridge.c +++ b/sys/src/9/port/devbridge.c @@ -780,21 +780,15 @@ cachedump(Bridge *b) Centry *ce; char c; - buf = smalloc(n); qlock(b); - if(waserror()) { - qunlock(b); - free(buf); - nexterror(); - } sec = TK2SEC(m->ticks); n = 0; for(i=0; i<CacheSize; i++) if(b->cache[i].expire != 0) n++; - n *= 51; // change if print format is changed n += 10; // some slop at the end + buf = smalloc(n); p = buf; ep = buf + n; ce = b->cache; @@ -807,7 +801,6 @@ cachedump(Bridge *b) ce->port, ce->src, ce->dst, ce->expire+off, c); } *p = 0; - poperror(); qunlock(b); return buf; } |