[4895] in Athena Bugs
vax 6.4r Hesiod library lint error
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Wed May 9 02:35:59 1990
Date: Wed, 9 May 90 02:35:30 -0400
From: "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>
To: marc@MIT.EDU
Cc: epeisach@ATHENA.MIT.EDU, bugs@ATHENA.MIT.EDU
In-Reply-To: bugs[4765]
From: marc@ATHENA.MIT.EDU
Reply-To: marc@MIT.EDU
Usmail: Marc Horowitz, 3 Ames Street, Cambridge, MA 02139
Phone: (617)225-6447
Date: Sat, 14 Apr 90 23:39:56 EDT
I'm really reluctant to extern declare a library function at the top
of the file. I believe that <stdlib.h> defines malloc, for instance,
on an ANSI system. I would rather see every call to malloc casted.
Marc
Yes, but we don't have <stdlib.h> on Athena, and the source files in
question don't include <stdlib.h>, and we don't have anything like
<malloc.h> either.
In our environment, malloc() returns a char *. The man page says
so. It is therefore correct to declare it as an extern function
returning a char *.
jik