Ted Unangst wrote:
> Martin Pieuchot wrote:
> > ok?
> >
> > -int chillbufs(struct
> > - bufcache *cache, struct bufqueue *queue, int64_t *queuepages);
> > +int chillbufs(struct bufcache *, struct bufqueue *, int64_t *);
>
> fwiw i like names in prototypes, so i know what's going on. i know
> style says that, but i think the advice is obsolete.
The compiler doesn't check that the argument names in the prototype
match those in the definition. The below program compiles without
warning.
int f(int a);
int
f(int b)
{
return b+3;
}
int
main()
{
return f(2);
}