summaryrefslogtreecommitdiff
path: root/zaptel.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-01-23 15:25:42 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-01-23 15:25:42 +0000
commitb2c0d8b6576b26631db7c450ac16c3776d80f476 (patch)
tree1c37e7aa18658a02b681d0dc34fba2d3f8219b6b /zaptel.c
parent0c56205a9a0d74562271fbaeddcabe91470f5f72 (diff)
clean up various compiler warnings
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1920 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.c')
-rw-r--r--zaptel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/zaptel.c b/zaptel.c
index 468c8dc..c5bae73 100644
--- a/zaptel.c
+++ b/zaptel.c
@@ -184,6 +184,7 @@ static struct class_simple *zap_class = NULL;
static int deftaps = 64;
+#if !defined(LINUX26)
static
__u16 fcstab[256] =
{
@@ -220,6 +221,7 @@ __u16 fcstab[256] =
0xf78f, 0xe606, 0xd49d, 0xc514, 0xb1ab, 0xa022, 0x92b9, 0x8330,
0x7bc7, 0x6a4e, 0x58d5, 0x495c, 0x3de3, 0x2c6a, 0x1ef1, 0x0f78
};
+#endif
static int debug;
@@ -6202,7 +6204,7 @@ static void __zt_getempty(struct zt_chan *ms, unsigned char *buf)
static void __zt_receive_chunk(struct zt_chan *chan, unsigned char *buf)
{
/* Receive chunk of audio -- called with chan->lock held */
- char waste[ZT_CHUNKSIZE];
+ unsigned char waste[ZT_CHUNKSIZE];
if (!buf) {
memset(waste, ZT_LIN2X(0, chan), sizeof(waste));