diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-04-09 22:42:11 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-04-09 22:42:11 +0000 |
commit | a6231c7677089fb97f52cf7be394e56b109fcc0c (patch) | |
tree | 82125bc0512ee75f5527f8d8e75731570c3a8f56 /sys/netbt | |
parent | 6f4f728595be47aae68122893a6eb58875a76094 (diff) |
make more bettah. instead of doing:
switch(type) {
case VREG:
/*something */
break;
case VLNK:
/* something */
break;
default:
panic("wtf?");
}
do_something_that_doesn't_change_type();
switch(type) {
case VREG:
/* nowt */
break;
case VLNK:
n = 0;
break;
default:
panic("wtf?");
}
be a bit less silly and replace the second switch with:
if (type == VLNK)
n = 0;
ok beck@, blambert@
Diffstat (limited to 'sys/netbt')
0 files changed, 0 insertions, 0 deletions