diff options
author | Russell Bryant <russell@digium.com> | 2008-08-02 19:59:37 +0000 |
---|---|---|
committer | Russell Bryant <russell@digium.com> | 2008-08-02 19:59:37 +0000 |
commit | aef005e28137ecc2b9dbeef0fc4efa52398b0da0 (patch) | |
tree | 59ade63aff685ef6472ac6f42fa45c634a31d1da /include | |
parent | 5d9a5ca2c539fc7937a74d87b3bea9cabe391e65 (diff) |
- Define kzalloc() for kernel versions that don't have it
- Use kzalloc instead of kmalloc+memset
- formatting tweaks to better conform to coding guidelines
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4667 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
-rw-r--r-- | include/dahdi/kernel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index cae305b..1fe579b 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -869,4 +869,8 @@ static inline short dahdi_txtone_nextsample(struct dahdi_chan *ss) /*! Maximum audio mask */ #define DAHDI_FORMAT_AUDIO_MASK ((1 << 16) - 1) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) +#define kzalloc(a, b) kcalloc(1, a, b) +#endif + #endif /* _DAHDI_KERNEL_H */ |