diff options
author | glebius <glebius@FreeBSD.org> | 2007-05-22 16:17:31 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2007-05-22 16:17:31 +0000 |
commit | d3faad37202c3a03e60e6179a537ca83672fce7a (patch) | |
tree | b94d40167398039e5b81a1a924a2e7c75cd8b8c2 /lib/libpthread/thread/thr_init.c | |
parent | eeec7835546c0575001b8c1d50f89a6ed0d1870c (diff) | |
download | FreeBSD-src-d3faad37202c3a03e60e6179a537ca83672fce7a.zip FreeBSD-src-d3faad37202c3a03e60e6179a537ca83672fce7a.tar.gz |
Some minor cleanups:
- In rt_check() remove the senderr() macro and the "bad" label. They
used to simplify code, but now aren't.
- Remove extra RT_LOCK_ASSERT() in rt_setgate(). The RT_REMREF macro
does this.
- In rtfree() convert panics to KASSERTs.
- Strict the routing API: rtfree() should be called only in a case
when we are completely sure we've got the last reference on the
rtentry. In all other cases RTFREE_LOCKED() macro should be used.
If the reference isn't the last one spit out a warning printf.
Correct the only(?) case for this in rt_check().
- Fix typos in comments.
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
0 files changed, 0 insertions, 0 deletions