Hi Dave, On Wed, 05 Nov 2008 20:25:57 -0800 (PST) David Miller <davem@xxxxxxxxxxxxx> wrote: > > From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> > Date: Thu, 6 Nov 2008 15:24:21 +1100 > > > These are things like: > > > > termios->c_cc[VTIME] = 0; > > > > termios is a (struct ktermios *) which has "cc_t c_cc[NCCS];". NCCS is > > 17 and VTIME is also 17. I assume the intention is to actually fill in > > _x_cc[0], but why is it done this way and not more directly? > > It's just some historical stuff. > > I've tried to rectify it, but it is non-trivial to fix and > all it does is pacify a warning rather than fix a real problem > so... ;-) > > This has been brought up perhaps 5 or 6 times in the past half > year :) Yeah, I guess that is when the compilers started complaining. Oh, well :-( [BTW, the number of warnings is itself becoming a real problem ... :-( ] -- Cheers, Stephen Rothwell sfr@xxxxxxxxxxxxxxxx http://www.canb.auug.org.au/~sfr/
Attachment:
pgp9mm3ZUNFRd.pgp
Description: PGP signature