Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Read errors (was:Power Save feature kills playlist playback)

Re: Read errors (was:Power Save feature kills playlist playback)

From: Björn Stenberg <bjorn_at_haxx.se>
Date: Thu, 13 Mar 2003 16:37:54 +0100

Mike Holden wrote:
> We sometimes return 0 for success,
> sometimes for error, but often use "if (somefunction())" type constructs,
> which can be misleading, since the value being tested may not follow the
> usual tradition of 0=true, anything else=false.

Maybe because it's actually the opposite. 0 == false, anything else == true. :-)

But I think you may indeed have found something. 'ret' should be initialized at the top of the loop, not at the bottom.

-- 
Björn
Received on 2003-03-13

Page was last modified "Sat May 23 08:12:40 2020" The Rockbox Crew