summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-09-15 17:13:29 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-09-15 17:13:29 +0000
commit60944d31be167a244e5670d36f5963c55b43681c (patch)
tree75a0d2b9ad77f2d8e6bff5061ea14122c7fb135e
parent64f2ef4cbde88e6291c775d98e1d171b911721a4 (diff)
Fix signed/unsigned comparisons in tonezone.c
(closes issue #14892) Reported by: gknispel_proformatique git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7132 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--tonezone.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tonezone.c b/tonezone.c
index 671404e..5895851 100644
--- a/tonezone.c
+++ b/tonezone.c
@@ -78,7 +78,7 @@ struct tone_zone *tone_zone_find_by_num(int id)
#define LEVEL -10
-static int build_tone(void *data, int size, struct tone_zone_sound *t, int *count)
+static int build_tone(void *data, size_t size, struct tone_zone_sound *t, int *count)
{
char *dup, *s;
struct dahdi_tone_def *td=NULL;
@@ -310,7 +310,7 @@ static struct mf_tone mfr2_rev_tones[] = {
{ 0, 0, 0 }
};
-static int build_mf_tones(void *data, int size, int *count, struct mf_tone *tone, int low_tone_level, int high_tone_level)
+static int build_mf_tones(void *data, size_t size, int *count, struct mf_tone *tone, int low_tone_level, int high_tone_level)
{
struct dahdi_tone_def *td;
float gain;
@@ -351,7 +351,7 @@ int tone_zone_register_zone(int fd, struct tone_zone *z)
int res;
int count = 0;
int x;
- int space = MAX_SIZE;
+ size_t space = MAX_SIZE;
void *ptr = buf;
int iopenedit = 1;
struct dahdi_tone_def_header *h;