[OpenAFS-devel] Re: patches for afs-krb5 (fix 64-bit bug, etc)

Garrett Wollman wollman@khavrinen.lcs.mit.edu
Thu, 20 May 2004 14:10:30 -0400 (EDT)


<<On Thu, 20 May 2004 13:53:49 -0400, Ken Hornstein <kenh@cmf.nrl.navy.mil> said:

> Turns out you learn something new every day.  However ... I'm not sure
> this is necessarily the correct approach.  From what I've read, NULL is
> not guaranteed to be ((void *) 0) (or something similar).  I think
> the best solution is to have an explicit cast in that statement.

In the C language at least, an explicit cast is the *only* solution.
Passing NULL to a variadic function without casting it to the expected
pointer type is an error.

-GAWollman