diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-03-03 19:37:48 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-03-03 19:37:48 +0000 |
commit | 67d950ad487f28bd4e5bb8f6fc6211f38399f1d8 (patch) | |
tree | f62368087dae0b725402983ac13a93effda1f585 /xpp/xpd.h | |
parent | 73feebed1df365832188837eeb09220579da2fef (diff) |
small compilation issues
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@972 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/xpd.h')
-rw-r--r-- | xpp/xpd.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -41,20 +41,20 @@ module_param(name, type, 0600); \ MODULE_PARM_DESC(name, desc) -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,12) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10) /* * Old 2.6 kernels had module_param_array() macro that receive the counter * by value. */ #define DEF_ARRAY(type,name,count,init,desc) \ unsigned int name ## _num_values; \ - type name[count] = {[0 ... count-1] = init}; \ + type name[count] = { [0 ... ((count)-1)] = (init) }; \ module_param_array(name, type, name ## _num_values, 0600); \ MODULE_PARM_DESC(name, desc " ( 1-" __MODULE_STRING(count) ")") #else #define DEF_ARRAY(type,name,count,init,desc) \ unsigned int name ## _num_values; \ - type name[count] = {[0 ... count-1] = init}; \ + type name[count] = {[0 ... ((count)-1)] = init}; \ module_param_array(name, type, &name ## _num_values, 0600); \ MODULE_PARM_DESC(name, desc " ( 1-" __MODULE_STRING(count) ")") #endif |