Newsgroups: comp.os.minix
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: fopen/fclose bug + fix
Message-ID: <1988Nov14.201727.225@utzoo.uucp>
Organization: U of Toronto Zoology
References: <259@cst.UUCP>
Date: Mon, 14 Nov 88 20:17:27 GMT

In article <259@cst.UUCP> meulenbr@cst.UUCP (Frans Meulenbroeks) writes:
>I've found a minor bug in fopen/fclose. 0 is used for assignment
>and comparison against _io_table, while (FILE *)0 would be better.

This is not a bug if the code is written in C (whether the language
accepted by the ST Minix compiler is precisely C is something I cannot
check at the moment).  The only place where it is necessary to cast a
0 or NULL to a specific pointer type is when passing a parameter to a
function.  In all other contexts, a C compiler knows what the type of
the value is supposed to be, and will do the cast for you.
-- 
Sendmail is a bug,             |     Henry Spencer at U of Toronto Zoology
not a feature.                 | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
