Index: channels/chan_iax2.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v retrieving revision 1.256 diff -u -r1.256 chan_iax2.c --- channels/chan_iax2.c 17 Mar 2005 21:30:19 -0000 1.256 +++ channels/chan_iax2.c 17 Mar 2005 21:58:59 -0000 @@ -1865,17 +1865,6 @@ if (!x) ast_cli(fd, "none"); ast_cli(fd, ")\n"); - -static int iax2_test_losspct(int fd, int argc, char *argv[]) -{ - if (argc != 4) - return RESULT_SHOWUSAGE; - - test_losspct = atoi(argv[3]); - - return RESULT_SUCCESS; -} - ast_cli(fd, " Status : "); if (peer->lastms < 0) strncpy(status, "UNREACHABLE", sizeof(status) - 1); Index: plc.c =================================================================== RCS file: /usr/cvsroot/asterisk/plc.c,v retrieving revision 1.1 diff -u -r1.1 plc.c --- plc.c 17 Mar 2005 21:30:19 -0000 1.1 +++ plc.c 17 Mar 2005 21:58:59 -0000 @@ -44,6 +44,11 @@ #define TRUE (!FALSE) #endif +#if !defined(INT16_MAX) +#define INT16_MAX (32767) +#define INT16_MIN (-32767-1) +#endif + /* We do a straight line fade to zero volume in 50ms when we are filling in for missing data. */ #define ATTENUATION_INCREMENT 0.0025 /* Attenuation per sample */ @@ -123,7 +128,6 @@ int plc_rx(plc_state_t *s, int16_t amp[], int len) { int i; - int overlap_len; int pitch_overlap; float old_step; float new_step; @@ -167,7 +171,6 @@ int plc_fillin(plc_state_t *s, int16_t amp[], int len) { - int16_t tmp[PLC_PITCH_OVERLAP_MAX]; int i; int pitch_overlap; float old_step;