Re: execl() sentinel

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: execl() sentinel
Дата
Msg-id 1184779915.20157.2.camel@dell.linuxdev.us.dell.com
обсуждение исходный текст
Ответ на Re: execl() sentinel  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: execl() sentinel
Список pgsql-patches
On Wed, 2007-07-18 at 16:59 +0200, Peter Eisentraut wrote:
> It might be good to check the actual definition of NULL in this case, however,
> before wondering further.

Well, the existing coding is plainly wrong, regardless of the NULL
implementation used on any given machine (although it will usually
work). The simple rule is "you need to cast NULL to a pointer type when
passing arguments to a variadic function, or to a function whose
prototype is not in scope".

So +1 on this patch from me.

-Neil



В списке pgsql-patches по дате отправления:

Предыдущее
От: "Simon Riggs"
Дата:
Сообщение: Re: Async Commit, v21 (now: v22)
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: execl() sentinel