[Haiku-commits] r30975 - in haiku/trunk: headers/private/kernel src/system/kernel/fs src/system/kernel/vm

Ingo Weinhold ingo_weinhold at gmx.de
Thu Jun 18 19:46:03 CEST 2009


-------- Original-Nachricht --------
> Datum: Thu, 18 Jun 2009 19:23:17 +0200 CEST
> Von: "Axel Dörfler" <axeld at pinc-software.de>

> "Ingo Weinhold" <ingo_weinhold at gmx.de> wrote:
> > PS: A stylistic remark: The popular ">= B_OK" comparison is not 
> > really correct, since _kern_mount() > (and many other functions) 
> doesn't ever return B_OK. It either returns a value >= 0 on success or 
> a > negative error code on failure
> 
> Which really is the same, isn't it? :-)

B_OK has value 0, if that's what you mean, but so do NULL and a dozen other unrelated constants, and you wouldn't compare with any of those in such a case either.

CU, Ingo



More information about the Haiku-commits mailing list