diff options
author | 2010-04-09 22:42:10 +0000 | |
---|---|---|
committer | 2010-04-09 22:42:10 +0000 | |
commit | 8fc8e70096561724760dfdd082479fba1d378273 (patch) | |
tree | c2e44abab82fb944b8ff9740862b4fc717da2590 /usr.bin/ssh/sshconnect.c | |
parent | In the nfs bio functions, instead of looking at an invalid vnode type, (diff) | |
download | wireguard-openbsd-8fc8e70096561724760dfdd082479fba1d378273.tar.xz wireguard-openbsd-8fc8e70096561724760dfdd082479fba1d378273.zip |
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 'usr.bin/ssh/sshconnect.c')
0 files changed, 0 insertions, 0 deletions