From aef005e28137ecc2b9dbeef0fc4efa52398b0da0 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Sat, 2 Aug 2008 19:59:37 +0000 Subject: - 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 --- include/dahdi/kernel.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 */ -- cgit v1.2.3