summaryrefslogtreecommitdiff
path: root/xpp/xpd.h
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-03-03 19:37:48 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-03-03 19:37:48 +0000
commit67d950ad487f28bd4e5bb8f6fc6211f38399f1d8 (patch)
treef62368087dae0b725402983ac13a93effda1f585 /xpp/xpd.h
parent73feebed1df365832188837eeb09220579da2fef (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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xpp/xpd.h b/xpp/xpd.h
index f563ca3..1576274 100644
--- a/xpp/xpd.h
+++ b/xpp/xpd.h
@@ -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