summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs/pass1.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-02-03 22:32:26 +0000
committersam <sam@FreeBSD.org>2009-02-03 22:32:26 +0000
commita142097876818fa2a5871c6b7b4195c2a40a67c3 (patch)
treebfb2f1d495936b11382174aaf8623b47d8f7c234 /sbin/fsck_ffs/pass1.c
parentdb0963893d564ede8e1864990855a43210cf0552 (diff)
downloadFreeBSD-src-a142097876818fa2a5871c6b7b4195c2a40a67c3.zip
FreeBSD-src-a142097876818fa2a5871c6b7b4195c2a40a67c3.tar.gz
When crafting a media setting w/ an auto (non-fixed) rate mask out the
turbo option in addition to the mode bits; otherwise if the current channel is a turbo mode channel we'll form an invalid media setting and the ifmedia_set operation in vap_attach will panic. While here use C99-style initialization for an array indexed by mode; this makes it consistent w/ other usage and avoids breakage if we should ever change the set of modes.
Diffstat (limited to 'sbin/fsck_ffs/pass1.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud