Newsgroups: news.software.b
Path: utzoo!utgpu!watserv1!watmath!gamiddle
From: gamiddle@watmath.waterloo.edu (Guy Middleton)
Subject: Re: Problem compiling latest C-news under Ultrix 4.1
Message-ID: <1991Apr4.035820.8952@watmath.waterloo.edu>
Organization: Math Faculty Secret Police
References: <1991Apr3.173459.3081@engin.umich.edu> <1991Apr3.190011.1117@zoo.toronto.edu>
Date: Thu, 4 Apr 1991 03:58:20 GMT
Lines: 19

In article <1991Apr3.190011.1117@zoo.toronto.edu> henry@zoo.toronto.edu (Henry Spencer) writes:
> In article <1991Apr3.173459.3081@engin.umich.edu> stealth@engin.umich.edu (Mike Pelletier) writes:
> >      char *ptr;
> >      ---^
> >ccom: Error: rdwr.c, line 70: redeclaration of fwrite
> 
> You can try changing those "char *"s to "void *"s, although this will mean
> further work within the routines to make it all turn out right.  Not a
> trivial fix, I'm afraid.

Actually, the fix is to change

	int
	fread(ptr, size, count, fp)

to	size_t
	fread(ptr, size, count, fp)

Changing "char *" to "void *" fixes the warnings, but not the errors.
