public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Recent changes break our update scripts, because of getenv_yesno()
@ 2010-12-31 10:33 Reinhard Meyer
  2010-12-31 10:41 ` Reinhard Meyer
  2010-12-31 10:55 ` Stefano Babic
  0 siblings, 2 replies; 7+ messages in thread
From: Reinhard Meyer @ 2010-12-31 10:33 UTC (permalink / raw)
  To: u-boot

Hello,

in common/image.c:


int getenv_yesno (char *var)
{
	char *s = getenv (var);
	return (s && (*s == 'n')) ? 0 : 1;
}

Is that supposed to return TRUE when the env variable does NOT exist?

Because each TFTP/USB/whatever load of an image will automatically start it!

(and why is such a generic function in image.c?)

Best Regards,
Reinhard

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-31 17:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-31 10:33 [U-Boot] Recent changes break our update scripts, because of getenv_yesno() Reinhard Meyer
2010-12-31 10:41 ` Reinhard Meyer
2010-12-31 10:58   ` Stefano Babic
2010-12-31 11:42   ` Wolfgang Denk
2010-12-31 11:54     ` Reinhard Meyer
2010-12-31 17:59       ` Mike Frysinger
2010-12-31 10:55 ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox