Older versions of GNU gcc do not allow 'NULL' as sentinel.
authorMichiel van Baak <michiel@vanbaak.info>
Thu, 19 Jun 2008 20:48:33 +0000 (20:48 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Thu, 19 Jun 2008 20:48:33 +0000 (20:48 +0000)
commit8e8359465b7002ddb955fa898b3c57a35132683f
tree7b42274bee0dd9b38bbd91570bf09a13d1c6aef0
parent2e0afd805b263ba915a711f802ae3ad583644adc
Older versions of GNU gcc do not allow 'NULL' as sentinel.
They want (char *)NULL as sentinel.
An example is OpenBSD (confirmed on 4.3) that ships with gcc 3.3.4

This commit introduces a contstant SENTINEL which is declared as:
#define SENTINEL ((char *)NULL)

All places I could test compile on my openbsd system are converted.
Update CODING-GUIDELINES to tell about this constant.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@124127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
13 files changed:
apps/app_directory.c
apps/app_minivm.c
apps/app_queue.c
apps/app_voicemail.c
channels/chan_iax2.c
channels/chan_sip.c
doc/CODING-GUIDELINES
funcs/func_realtime.c
include/asterisk/compiler.h
main/logger.c
pbx/pbx_realtime.c
res/res_musiconhold.c
res/res_realtime.c