[U-Boot-Users] [PATCH] add explicit bbt creation to commandline

Wolfgang Denk wd at denx.de
Sun Jul 6 15:31:31 CEST 2008


In message <20080706111620.GC13922 at game.jcrosoft.org> you wrote:
>
> > +static int yes(void)
> > +{
> > +	char c;
> > +
> > +	c = getc();
> > +	if (c != 'y' && c != 'Y')
> > +		return 0;
> > +	c = getc();
> > +	return c == '\r' || c == '\n';
> > +}
> > +
> It will be good to have it in a re-usable header as inline.
> 
> And why not name it as "ask_confirm()"?

Or extend it a bit and call it ckyorn() - oh, good old SVR4 times :-)

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Hegel was right when he said that we learn from history that man  can
never learn anything from history.              - George Bernard Shaw




More information about the U-Boot mailing list