Subject: standards/1819: putc and getc macros are incorrect
To: None <>
From: Peter Seebach <seebs@taniemarie>
List: netbsd-bugs
Date: 12/05/1995 22:22:26
>Number:         1819
>Category:       standards
>Synopsis:       bug in getc and putc macros
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec  6 20:35:04 1995
>Originator:     Peter Seebach
Usenet Fact Police (Undercover)
>Release:        1.1
System: NetBSD taniemarie 1.1 NetBSD 1.1 (SEEBS) #3: Tue Nov 28 18:59:30 CST 1995 seebs@taniemarie:/usr/src/sys/arch/amiga/compile/SEEBS amiga

	The putc and getc macros do not function correctly when the pointer
	argument is of type (void *).  They should, to properly behave like
	functions with prototypes in scope.
	#include <stdio.h>

	main () {
		void *v;

		v = stdin;
		return 0;
	Add casts to (FILE *) in <stdio.h>.

	(Unfortunately, this will introduce a lack of warning for non-pointer