[svn-commits] tzafrir: tools/trunk r7132 - /tools/trunk/tonezone.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Sep 15 12:13:34 CDT 2009
Author: tzafrir
Date: Tue Sep 15 12:13:29 2009
New Revision: 7132
URL: http://svn.asterisk.org/svn-view/dahdi?view=rev&rev=7132
Log:
Fix signed/unsigned comparisons in tonezone.c
(closes issue #14892)
Reported by: gknispel_proformatique
Modified:
tools/trunk/tonezone.c
Modified: tools/trunk/tonezone.c
URL: http://svn.asterisk.org/svn-view/dahdi/tools/trunk/tonezone.c?view=diff&rev=7132&r1=7131&r2=7132
==============================================================================
--- tools/trunk/tonezone.c (original)
+++ tools/trunk/tonezone.c Tue Sep 15 12:13:29 2009
@@ -78,7 +78,7 @@
#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 @@
{ 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 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;
More information about the svn-commits
mailing list