Fix improper use of function sentinel
commit7a84127a275c2f72dbc162830b4fbb366aa48b6d
authorCarlos R. Mafra <crmafra@gmail.com>
Mon, 17 Aug 2009 16:13:58 +0000 (17 18:13 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 17 Aug 2009 16:13:58 +0000 (17 18:13 +0200)
treed359acf8d8348e1c7ed0f1686e82a5581f846ff0
parent288853e44fef493203c45ddfc63af73e4b4ad6c8
Fix improper use of function sentinel

This patch addresses this warning of gcc:

wfontpanel.c: In function 'listFamilies':
wfontpanel.c:588: warning: missing sentinel in function call

Fix it by using the 'NULL' pointer instead of 0 (zero) as the
sentinel.

For more information, see
http://www.linuxonly.nl/docs/2/2_GCC_4_warnings_about_sentinels.html
in particular,

   "On most systems, there is no difference between 0 and (char *)0.
    On 64 bit systems, however, the integer 0 is 32 bits and the
    pointer 0 is 64 bits. The compiler does not know whether it is
    an integer or a pointer, and defaults for the integer. This will
    not clear the upper 32 bits and the function will not stop
    scanning its parameters."

Note that here in my 64-bit Mandriva I don't need to cast (char *)NULL.
WINGs/wfontpanel.c