[systemd-devel] [bug] (char*)NULL should be used in variadic functions
mbartoszkiewicz at gmail.com
Mon Feb 4 02:37:46 PST 2013
On Mon, Feb 4, 2013 at 11:15 AM, Lennart Poettering
<lennart at poettering.net> wrote:
> We actually care about readability of the sources and non-Linux systems
> are out-of-focus for us. Can you tell me which Linux system has
> sizeof(void*) != sizeof(char*)? Otherwise, I only see this as pointless
> excercise of making our sources less readable...
> Or am I missing something here?
I believe it is legal (but glibc doesn't seem to do it) to define NULL
simply as 0, so sizeof NULL == sizeof(int), which can be different
Michał Bartoszkiewicz <mbartoszkiewicz at gmail.com>
More information about the systemd-devel