[Bf-committers] Fix bug: 1013
Arne Schmitz
bf-committers@blender.org
Tue, 06 Apr 2004 19:06:45 +0200
--Boundary-02=_qOucAtTHxZjIvuP
Content-Type: text/plain;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Am Montag, 5. April 2004 21:47 schrieb Kenneth Styrberg:
> (file =3D=3D -1) to (file < 0)
>
> I saw it elsewhere in the code and thought it was included for portability
> (in case other platforms returns other negative numbers in case of failur=
e?
> or...)
=46rom the man page: =BBopen and creat return the new file descriptor, or -=
1 if an=20
error occurred (in which case, errno is set appropriately).=AB
So for the sake of readability and since this is Posix behaviour I would=20
suggest that we should use (file =3D=3D -1).
Arne
=2D-=20
[--- PGP key FD05BED7 --- http://www.root42.de/ ---]
--Boundary-02=_qOucAtTHxZjIvuP
Content-Type: application/pgp-signature
Content-Description: signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQBAcuOqzpP3gv0FvtcRAlM7AKDa1ZdJizwA7NkqVXBNaIOpeDOj/wCfThQC
WSDEMlg0AcdzoLiqIrh/vnI=
=n/8m
-----END PGP SIGNATURE-----
--Boundary-02=_qOucAtTHxZjIvuP--