On Sun, Nov 21, 2010 at 9:40 PM, Benjamin Close <benjamin.cl...@clearchain.com> wrote: > Is this really the same thing? > I believe the variable:number is a bitfield indicator not a member > initialization.
Indeed it is, in a struct declaration, but that was was an initialization (notice the equal sign before the brace). That syntax is obsolete since GCC 2.5. Refer to http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Designated-Inits.html > On 20/11/10 23:54, Bernhard Schmidt wrote: >> >> Author: bschmidt >> Date: Sat Nov 20 13:24:05 2010 >> New Revision: 215563 >> URL: http://svn.freebsd.org/changeset/base/215563 >> >> Log: >> MFC r209092: >> Remove GNU-style struct initialization. >> >> Committed by: ed >> >> Modified: >> stable/8/sys/net80211/ieee80211_rssadapt.c >> Directory Properties: >> stable/8/sys/ (props changed) >> stable/8/sys/amd64/include/xen/ (props changed) >> stable/8/sys/cddl/contrib/opensolaris/ (props changed) >> stable/8/sys/contrib/dev/acpica/ (props changed) >> stable/8/sys/contrib/pf/ (props changed) >> stable/8/sys/dev/xen/xenpci/ (props changed) >> >> Modified: stable/8/sys/net80211/ieee80211_rssadapt.c >> >> ============================================================================== >> --- stable/8/sys/net80211/ieee80211_rssadapt.c Sat Nov 20 13:12:59 2010 >> (r215562) >> +++ stable/8/sys/net80211/ieee80211_rssadapt.c Sat Nov 20 13:24:05 2010 >> (r215563) >> @@ -58,12 +58,12 @@ struct rssadapt_expavgctl { >> }; >> >> static struct rssadapt_expavgctl master_expavgctl = { >> - rc_decay_denom : 16, >> - rc_decay_old : 15, >> - rc_thresh_denom : 8, >> - rc_thresh_old : 4, >> - rc_avgrssi_denom : 8, >> - rc_avgrssi_old : 4 >> + .rc_decay_denom = 16, >> + .rc_decay_old = 15, >> + .rc_thresh_denom = 8, >> + .rc_thresh_old = 4, >> + .rc_avgrssi_denom = 8, >> + .rc_avgrssi_old = 4 >> }; >> >> #ifdef interpolate >> _______________________________________________ >> svn-src-all@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/svn-src-all >> To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org" > > _______________________________________________ > svn-src-all@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/svn-src-all > To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org" > -- Not so young, but still crying out Full of anger full of doubt _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"