Changed formula for getting the number of elements in a static array
commit7f6699ffca7946f99b686ac918546ae503bf5204
authorChristophe CURIS <christophe.curis@free.fr>
Fri, 10 May 2013 22:07:12 +0000 (11 00:07 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 10 May 2013 23:17:27 +0000 (11 00:17 +0100)
treed290bc43288cf88794145274375fe75b08d0d0fe
parente17a197bc4713918930e0b9d3a495d64a5dcdac7
Changed formula for getting the number of elements in a static array

When using the formula [sizeof(array) / sizeof( x )] to get the number
of element in a static array, it is better to use array[0] for 'x'
instead of the base type of array:
 - in case the base type would change someday;
 - if the compiler were deciding to insert padding somewhere
WINGs/wfontpanel.c
WINGs/widgets.c
WPrefs.app/Appearance.c
WPrefs.app/MouseSettings.c
WPrefs.app/Workspace.c
src/defaults.c
src/startup.c
src/wmspec.c
src/xutil.c
util/fontconv.c